Jenkins build
Some checks failed
test/timeline-frontend/pipeline/head There was a failure building this commit
Some checks failed
test/timeline-frontend/pipeline/head There was a failure building this commit
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -51,7 +51,9 @@ pipeline {
|
|||||||
sh "chown -R jenkins:jenkins ${workspace}"
|
sh "chown -R jenkins:jenkins ${workspace}"
|
||||||
|
|
||||||
// 使用更健壮的Docker命令
|
// 使用更健壮的Docker命令
|
||||||
sh 'docker run -u $ (id -u): $ (id -g) -v $ {workspace}:/app -w /app node:18-alpine sh -c "npm install && npm run build"' }
|
sh 'docker run -u $ (id -u): $ (id -g) -v $ {workspace}:/app -w /app node:18-alpine sh -c "npm install && npm run build"'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build Docker Image') {
|
stage('Build Docker Image') {
|
||||||
|
|||||||
Reference in New Issue
Block a user