Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit d4fce09

Browse files
committed
Build: Update to jpl v3.1.6
1 parent d139966 commit d4fce09

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

Jenkinsfile

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!groovy
22

3-
@Library('github.com/red-panda-ci/jenkins-pipeline-library@v2.9.1') _
3+
@Library('github.com/red-panda-ci/jenkins-pipeline-library@v3.1.6') _
44

55
// Initialize global config
66
cfg = jplConfig('docker-command-launcher', 'bash', '', [email:'redpandaci+docker-command-launcher@gmail.com'])
@@ -10,7 +10,7 @@ pipeline {
1010

1111
stages {
1212
stage ('Initialize') {
13-
agent { label 'master' }
13+
agent { label 'docker' }
1414
steps {
1515
jplStart(cfg)
1616
}
@@ -21,17 +21,11 @@ pipeline {
2121
sh 'bin/test.sh'
2222
}
2323
}
24-
stage ('Release confirm') {
25-
when { expression { cfg.BRANCH_NAME.startsWith('release/v') || cfg.BRANCH_NAME.startsWith('hotfix/v') } }
26-
steps {
27-
jplPromoteBuild(cfg)
28-
}
29-
}
30-
stage ('Release finish') {
31-
agent { label 'master' }
32-
when { expression { (cfg.BRANCH_NAME.startsWith('release/v') || cfg.BRANCH_NAME.startsWith('hotfix/v')) && cfg.promoteBuild.enabled } }
24+
stage ('Make release'){
25+
agent { label 'docker' }
26+
when { branch 'release/new' }
3327
steps {
34-
jplCloseRelease(cfg)
28+
jplMakeRelease(cfg, true)
3529
}
3630
}
3731
}

0 commit comments

Comments
 (0)