update Jenkins pipeline
This commit is contained in:
parent
256ae78ed2
commit
c9b2b2834c
|
@ -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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue