From 7cf760fb1a712c02e46e21876cb6ff2c8652c460 Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Tue, 4 Aug 2026 13:35:09 +0200 Subject: [PATCH] Pass siteMvn as a String so the site stage runs on Maven 4 asfMavenTlpPlgnBuild iterates the `maven` list, so a List is right there, but `siteMvn` is handed to doCreateTask whole and stringified with "${maven}". A List becomes the literal "[4.0.x]", which matches no case in jenkinsEnv.mvnFromVersion and falls through to its default, so the site stage has been running on maven_3_latest with no error. Co-Authored-By: Claude Opus 5 (1M context) --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 217636c..3f93093 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,4 +17,4 @@ * under the License. */ -asfMavenTlpPlgnBuild(jdks:[ "17", "21" ], maven: [ "4.0.x" ], siteJdk:[ "17" ], siteMvn:[ "4.0.x" ]) +asfMavenTlpPlgnBuild(jdks:[ "17", "21" ], maven: [ "4.0.x" ], siteJdk:[ "17" ], siteMvn: "4.0.x" )