Skip to content

Commit be1c458

Browse files
committed
Ensure correct bom version when jenkins version updated
1 parent 2ddb2fb commit be1c458

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

updatecli/updatecli.d/update-jenkins-version.yml

+26
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@ sources:
1818
github:
1919
token: '{{ requiredEnv .github.token }}'
2020
username: '{{ .github.username }}'
21+
bom:
22+
name: Get latest BOM line
23+
kind: jenkins
24+
spec:
25+
release: stable
26+
transformers:
27+
- trimsuffix: ".(.*)$"
28+
- trimsuffix: ".2"
29+
- trimsuffix: ".3"
30+
- trimsuffix: ".4"
31+
- addprefix: "bom-"
32+
- addsuffix: ".x"
33+
github:
34+
token: '{{ requiredEnv .github.token }}'
35+
username: '{{ .github.username }}'
2136
targets:
2237
jenkins:
2338
name: Update Jenkins Version
@@ -28,13 +43,24 @@ targets:
2843
file: pom.xml
2944
matchpattern: '<jenkins.version>(.*)</jenkins.version>'
3045
replacepattern: '<jenkins.version>{{ source `jenkins` }}</jenkins.version>'
46+
bom:
47+
name: Ensure Jenkins BOM version
48+
sourceid: jenkins
49+
scmid: github
50+
kind: file
51+
spec:
52+
file: pom.xml
53+
matchpattern: '<artifactId>bom-(.*).x</artifactId>'
54+
replacepattern: '<artifactId>{{ source `bom` }}</artifactId>'
3155
actions:
3256
jenkins:
3357
title: Bump Jenkins version {{ source "jenkins" }}
58+
disablepipelineurl: true
3459
kind: github/pullrequest
3560
scmid: github
3661
targets:
3762
- jenkins
63+
- bom
3864
spec:
3965
labels:
4066
- dependencies

0 commit comments

Comments
 (0)