update Jenkinsfile

This commit is contained in:
ching 2022-01-16 01:32:35 +08:00
parent e82ac3ae3d
commit 3f7e61d7dc

26
Jenkinsfile vendored
View File

@ -1,15 +1,17 @@
pipeline { pipeline {
agent { agent {
docker { docker {
image 'node:6-alpine' image 'node:6-alpine'
args '-p 3000:3000' args '-p 3000:3000'
}
} }
stages {
stage('Build') { }
steps { stages {
sh 'cd frontend; npm install; npm run build' stage('Build') {
} steps {
} sh 'npm install'
}
} }
}
}
}