Skip to content

Commit 10b2ae3

Browse files
committed
feat(jenkins): add multi-branch pipeline job
Signed-off-by: Bryan Ramos <bramos@redhat.com>
1 parent 94093a0 commit 10b2ae3

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

manifests/jenkins/docker/casc/jobs.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
jobs:
22
- script: >
3-
pipelineJob('backstage-lab') {
3+
pipelineJob('backstage-lab-basic') {
44
definition {
55
cps {
66
script("""pipeline {
@@ -17,3 +17,18 @@ jobs:
1717
}
1818
}
1919
}
20+
21+
- script: >
22+
multibranchPipelineJob('backstage-lab') {
23+
branchSources {
24+
git {
25+
id('backstage-lab')
26+
remote('https://github.com/cryptorodeo/backstage-lab.git')
27+
}
28+
}
29+
factory {
30+
workflowBranchProjectFactory {
31+
scriptPath('manifests/jenkins/Jenkinsfile')
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)