Skip to content

Resolve Maven version dynamically in Jenkinsfile#127

Merged
tortmayr merged 4 commits into
masterfrom
fix-jenkinsfile-maven-version
May 1, 2026
Merged

Resolve Maven version dynamically in Jenkinsfile#127
tortmayr merged 4 commits into
masterfrom
fix-jenkinsfile-maven-version

Conversation

@tortmayr
Copy link
Copy Markdown
Contributor

@tortmayr tortmayr commented May 1, 2026

Summary

  • Removes the hardcoded MAVEN_VERSION env var from the Jenkinsfile
  • Resolves the latest Maven 3.x version at build time via the GitHub API (apache/maven releases)
  • Eliminates the need to manually bump the Maven version whenever Apache publishes a new release

Test plan

  • Verify the Jenkins build successfully downloads and uses the latest Maven version

tortmayr added 4 commits May 1, 2026 19:34
Instead of hardcoding the Maven version (which breaks whenever
Apache releases a new version), resolve the latest 3.x release
from the GitHub API at build time.
…h trigger

- Switch from GitHub API to Maven Central maven-metadata.xml to resolve
  the latest Maven 3.x version (avoids rate limiting on unauthenticated requests)
- Filter for stable 3.x releases only (no alpha/beta/rc, no Maven 4.x)
- Add workflow_dispatch trigger to CodeQL workflow for manual runs
@tortmayr tortmayr merged commit 3f763a5 into master May 1, 2026
5 checks passed
@tortmayr tortmayr deleted the fix-jenkinsfile-maven-version branch May 1, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant