You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2021/10/08 10:53:17 UTC

[maven-jenkins-lib] branch master updated: Add workaround for MNG-7289

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

rfscholte 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 7bf20e4  Add workaround for MNG-7289
7bf20e4 is described below

commit 7bf20e411bf45ec575359bbf2a261204f49c3d06
Author: rfscholte <rf...@apache.org>
AuthorDate: Fri Oct 8 12:52:57 2021 +0200

    Add workaround for MNG-7289
---
 vars/asfMavenTlpPlgnBuild.groovy | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index 771278d..9afe422 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -49,6 +49,7 @@ def call(Map params = [:]) {
     taskContext['failFast'] = failFast;
     taskContext['tmpWs'] = tmpWs;
     taskContext['archives'] = params.archives
+    taskContext['siteWithPackage'] = params.containsKey('siteWithPackage') ? params.siteWithPackage : false // workaround for MNG-7289
 
     Map tasks = [failFast: failFast]
     boolean first = true
@@ -138,6 +139,9 @@ def doCreateTask( os, jdk, maven, tasks, first, plan, taskContext )
       }	      
   }
   else if (plan == 'site') {
+      if (taskContext.siteWithPackage) {
+        cmd += 'package'
+      }
       cmd += 'site'
       cmd += '-Preporting'
   }