update Jenkinsfile

This commit is contained in:
medcl 2020-03-17 20:38:12 +08:00
parent c9b2b2834c
commit 34cb219a29
1 changed files with 13 additions and 11 deletions

16
Jenkinsfile vendored
View File

@ -5,21 +5,23 @@ pipeline {
CI = 'true' CI = 'true'
} }
stages { stages {
stage('Update') {
stage('Stop Docker') {
steps {
sh 'cd /home/deploy/logging-center && cnpm run docker:stop'
}
}
stage('Update Files') {
steps { steps {
sh 'cd /home/deploy/logging-center && git pull origin master' sh 'cd /home/deploy/logging-center && git pull origin master'
} }
} }
stage('Install') { stage('Install Packages') {
steps { steps {
sh 'cd /home/deploy/logging-center && cnpm install' sh 'cd /home/deploy/logging-center && cnpm install'
} }
} }
stage('Docker') {
steps {
sh 'cd /home/deploy/logging-center && cnpm run docker:stop'
}
}
stage('Start Docker') { stage('Start Docker') {
steps { steps {