build: refs #5483 Jenkinsfile parallel deploy
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
3e0ebc0f26
commit
1a64126655
|
@ -97,6 +97,8 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
|
parallel {
|
||||||
|
stage('Docker') {
|
||||||
when {
|
when {
|
||||||
environment name: 'RUN_SOURCE', value: 'git'
|
environment name: 'RUN_SOURCE', value: 'git'
|
||||||
anyOf {
|
anyOf {
|
||||||
|
@ -131,11 +133,13 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
script {
|
script {
|
||||||
if (env.RUN_SOURCE == 'git'
|
if (env.RUN_SOURCE == 'git'
|
||||||
&& ['master', 'test', 'dev'].contains(env.BRANCH_NAME)) {
|
&& ['master', 'test'].contains(env.BRANCH_NAME)) {
|
||||||
String message = env.GIT_COMMIT_MSG
|
String message = env.GIT_COMMIT_MSG
|
||||||
int index = message.indexOf('\n')
|
int index = message.indexOf('\n')
|
||||||
if (index != -1)
|
if (index != -1)
|
||||||
|
|
Loading…
Reference in New Issue