Skip to content

Commit

Permalink
Ensure correct bom version when jenkins version updated (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesbusy authored Nov 14, 2023
1 parent ef113c8 commit ee45e64
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions updatecli/updatecli.d/update-jenkins-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -28,13 +43,24 @@ targets:
file: pom.xml
matchpattern: '<jenkins.version>(.*)</jenkins.version>'
replacepattern: '<jenkins.version>{{ source `jenkins` }}</jenkins.version>'
bom:
name: Ensure Jenkins BOM version
sourceid: jenkins
scmid: github
kind: file
spec:
file: pom.xml
matchpattern: '<artifactId>bom-(.*).x</artifactId>'
replacepattern: '<artifactId>{{ source `bom` }}</artifactId>'
actions:
jenkins:
title: Bump Jenkins version {{ source "jenkins" }}
disablepipelineurl: true
kind: github/pullrequest
scmid: github
targets:
- jenkins
- bom
spec:
labels:
- dependencies
Expand Down

0 comments on commit ee45e64

Please sign in to comment.