This is an automated email from the ASF dual-hosted git repository.

olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 4579585  fix
4579585 is described below

commit 4579585ee10722f2871dc7cd371b19996f1d7153
Author: Olivier Lamy <[email protected]>
AuthorDate: Mon Mar 2 20:59:15 2026 +1000

    fix
    
    Signed-off-by: Olivier Lamy <[email protected]>
---
 vars/asfMavenTlpPlgnBuild.groovy | 6 +++---
 vars/asfMavenTlpStdBuild.groovy  | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index 4e18098..31f6b5b 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -26,7 +26,7 @@ def call(Map params = [:]) {
 
   try {
     def buildProperties = []
-    if (shouldDeploy()) {
+    if (shouldDeploy) {
       // set build retention time first
       buildProperties.add(buildDiscarder(logRotator(artifactDaysToKeepStr: '', 
artifactNumToKeepStr: '5', daysToKeepStr: '15', numToKeepStr: '10')))
       // ensure a build is done every month
@@ -103,7 +103,7 @@ def call(Map params = [:]) {
     if (taskContext.failingFast != null) {
       echo "***** FAST FAILURE *****\n\nFast failure triggered by 
${taskContext.failingFast}\n\n***** FAST FAILURE *****"
     }
-    if (shouldDeploy()) {
+    if (shouldDeploy) {
       stage("Notifications") {
         jenkinsNotify()
       }
@@ -137,7 +137,7 @@ def doCreateTask( os, jdk, maven, tasks, first, plan, 
taskContext )
 
   if (plan == 'build') {
       cmd += 'clean'
-      if (shouldDeploy() && jdk == '21' && maven == '3.9.x' && os == 'linux' ) 
{
+      if (shouldDeploy && jdk == '21' && maven == '3.9.x' && os == 'linux' ) {
         cmd += 'deploy'
       } else {
         cmd += 'verify -Dpgpverify.skip'      
diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index 99e73d2..d48447d 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -25,7 +25,7 @@ def call(Map params = [:]) {
   def shouldDeploy = { branchesToNotify.contains(env.BRANCH_NAME) || 
env.BRANCH_NAME ==~ /maven-.*-3\.x/ }
   try {
     def buildProperties = []
-    if (shouldDeploy()) {
+    if (shouldDeploy) {
       // set build retention time first
       buildProperties.add(buildDiscarder(logRotator(artifactDaysToKeepStr: '', 
artifactNumToKeepStr: '5', daysToKeepStr: '15', numToKeepStr: '10')))
       // ensure a build is done every month
@@ -70,7 +70,7 @@ def call(Map params = [:]) {
         }
         cmd += 'clean'
         cmd += mavenArgs
-        if (shouldDeploy() && jdk == '21' && os == 'linux' ) {
+        if (shouldDeploy && jdk == '21' && os == 'linux' ) {
           cmd += 'deploy'
         } else {
           cmd += 'verify -Dpgpverify.skip'
@@ -171,7 +171,7 @@ def call(Map params = [:]) {
     if (failingFast != null) {
       echo "***** FAST FAILURE *****\n\nFast failure triggered by 
${failingFast}\n\n***** FAST FAILURE *****"
     }
-    if (shouldDeploy()) {
+    if (shouldDeploy) {
       stage("Notifications") {
         jenkinsNotify()
       }

Reply via email to