update Jenkinsifle, add update docker images stage

This commit is contained in:
medcl 2020-03-22 14:41:58 +08:00
parent fb842ee750
commit ff1b62d22b
1 changed files with 13 additions and 0 deletions

13
Jenkinsfile vendored
View File

@ -14,6 +14,19 @@ pipeline {
}
}
stage('Update Docker') {
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE'){
sh 'docker pull docker.infini.ltd:64443/nodejs-dev:latest'
}
}
}
stage('Update Files') {
steps {
sh 'cd /home/deploy/logging-center && git pull origin master'