Skip to content

Commit

Permalink
Merge pull request #1384 from jayfranco999/retrieve-maven-version
Browse files Browse the repository at this point in the history
chore(updatecli):retrieve Maven version from the source with a native resource(dockerfile)
  • Loading branch information
smerle33 authored Sep 6, 2024
2 parents f1d6502 + 13becca commit 8fb6229
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions updatecli/updatecli.d/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ scms:

sources:
mavenVersion:
# Using a file with a transformer until https://github.com/updatecli/updatecli/issues/2275 is done
kind: file
kind: dockerfile
name: Get the latest Maven version use on the principal branch of the Jenkins ATH
spec:
file: https://raw.githubusercontent.com/jenkinsci/acceptance-test-harness/master/src/main/resources/ath-container/Dockerfile
matchpattern: 'ARG MAVEN_VERSION=.*'
transformers:
- findsubmatch:
pattern: 'ARG MAVEN_VERSION=(.*)'
captureindex: 1
instruction:
keyword: "ARG"
matcher: "MAVEN_VERSION"

conditions:
checkIfReleaseIsAvailable:
Expand Down

0 comments on commit 8fb6229

Please sign in to comment.