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

24
Jenkinsfile vendored
View File

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