diff --git a/updatecli/updatecli.d/update-jenkins-version.yml b/updatecli/updatecli.d/update-jenkins-version.yml index ca10241..8243218 100644 --- a/updatecli/updatecli.d/update-jenkins-version.yml +++ b/updatecli/updatecli.d/update-jenkins-version.yml @@ -18,6 +18,21 @@ sources: github: token: '{{ requiredEnv .github.token }}' username: '{{ .github.username }}' + bom: + name: Get latest BOM line + kind: jenkins + spec: + release: stable + transformers: + - trimsuffix: ".(.*)$" + - trimsuffix: ".2" + - trimsuffix: ".3" + - trimsuffix: ".4" + - addprefix: "bom-" + - addsuffix: ".x" + github: + token: '{{ requiredEnv .github.token }}' + username: '{{ .github.username }}' targets: jenkins: name: Update Jenkins Version @@ -28,13 +43,24 @@ targets: file: pom.xml matchpattern: '(.*)' replacepattern: '{{ source `jenkins` }}' + bom: + name: Ensure Jenkins BOM version + sourceid: jenkins + scmid: github + kind: file + spec: + file: pom.xml + matchpattern: 'bom-(.*).x' + replacepattern: '{{ source `bom` }}' actions: jenkins: title: Bump Jenkins version {{ source "jenkins" }} + disablepipelineurl: true kind: github/pullrequest scmid: github targets: - jenkins + - bom spec: labels: - dependencies