update Jenkins pipeline

This commit is contained in:
ops 2020-03-17 20:22:55 +08:00
parent 256ae78ed2
commit c9b2b2834c
1 changed files with 13 additions and 6 deletions

19
Jenkinsfile vendored
View File

@ -5,20 +5,27 @@ pipeline {
CI = 'true' CI = 'true'
} }
stages { stages {
stage('Build') { stage('Update') {
steps { steps {
sh 'cnpm install' sh 'cd /home/deploy/logging-center && git pull origin master'
} }
} }
stage('Test') { stage('Install') {
steps { steps {
sh '/bin/true' sh 'cd /home/deploy/logging-center && cnpm install'
} }
} }
stage('Deliver') { stage('Docker') {
steps { steps {
sh '/bin/true' sh 'cd /home/deploy/logging-center && cnpm run docker:stop'
} }
} }
stage('Start Docker') {
steps {
sh 'cd /home/deploy/logging-center && cnpm run docker:dev'
}
}
} }
} }