You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2025/07/10 12:05:31 UTC
(maven) branch deployed-branches updated: Fix deployed branches check to fully reuse same file
This is an automated email from the ASF dual-hosted git repository.
cstamas pushed a commit to branch deployed-branches
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/deployed-branches by this push:
new 3487a63609 Fix deployed branches check to fully reuse same file
3487a63609 is described below
commit 3487a6360994faaded8cadec4052c1f941d379ec
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Thu Jul 10 14:05:03 2025 +0200
Fix deployed branches check to fully reuse same file
---
Jenkinsfile | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 16c09296df..a1bc86896e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -16,8 +16,8 @@ pipeline {
checkout scm
mavenBuild("jdk_17_latest", "")
script {
- properties([buildDiscarder(logRotator(artifactNumToKeepStr: '5', numToKeepStr: env.BRANCH_NAME == 'master' ? '30' : '5'))])
- if (env.BRANCH_NAME == 'master') {
+ properties([buildDiscarder(logRotator(artifactNumToKeepStr: '5', numToKeepStr: isDeployedBranch() ? '30' : '5'))])
+ if (isDeployedBranch()) {
withEnv(["JAVA_HOME=${tool "jdk_17_latest"}",
"PATH+MAVEN=${ tool "jdk_17_latest" }/bin:${tool "maven_3_latest"}/bin",
"MAVEN_OPTS=-Xms4G -Xmx4G -Djava.awt.headless=true"]) {
@@ -31,6 +31,10 @@ pipeline {
}
}
+boolean isDeployedBranch() {
+ return env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'maven-4.0.x' || env.BRANCH_NAME == 'maven-3.9.x'
+}
+
/**
* To other developers, if you are using this method above, please use the following syntax.
* By default this method does NOT execute ITs anymore, just "install".