From 13beccafce9b72922ad0bee15f4592dcee80e5c4 Mon Sep 17 00:00:00 2001 From: jayfranco999 Date: Fri, 6 Sep 2024 17:53:00 +0530 Subject: [PATCH] chore(updatecli):retrieve Maven version from the with a native resource(dockerfile) Signed-off-by: jayfranco999 --- updatecli/updatecli.d/maven.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/updatecli/updatecli.d/maven.yml b/updatecli/updatecli.d/maven.yml index 3c42cbcb5..a5a4cb360 100644 --- a/updatecli/updatecli.d/maven.yml +++ b/updatecli/updatecli.d/maven.yml @@ -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: