File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ pipeline {
4
4
// by default run on the master node, since it's the only one with direct repo access
5
5
agent { label 'master' }
6
6
options {
7
- // no checkout needed
8
- skipDefaultCheckout()
7
+ skipDefaultCheckout() // no checkout needed
9
8
buildDiscarder(logRotator(numToKeepStr: '100'))
10
9
timestamps()
11
10
}
@@ -17,7 +16,16 @@ pipeline {
17
16
try {
18
17
build job: "../../hivemq4-composite/${branchJobName}", wait: false
19
18
} catch (e) {
20
- build job: "../../hivemq4-composite", wait: false
19
+ try {
20
+ sh """
21
+ git clone git@github.com:hivemq/hivemq.git --branch=${PLATFORM_MASTER} --single-branch --depth 1 .
22
+ git push origin HEAD:${BRANCH_NAME}
23
+ """
24
+ } catch (e2) { // if push failed, branch already exists
25
+ } finally {
26
+ cleanWs()
27
+ build job: "../../hivemq4-composite", wait: false
28
+ }
21
29
}
22
30
}
23
31
}
You can’t perform that action at this time.
0 commit comments