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 2018/06/29 16:58:08 UTC

[maven-jenkins-lib] branch master updated: Make taskContext accessible for try-catch

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 903cc86  Make taskContext accessible for try-catch
903cc86 is described below

commit 903cc867d04a085719e8cbdef43fb68f27356837
Author: rfscholte <rf...@apache.org>
AuthorDate: Fri Jun 29 18:58:01 2018 +0200

    Make taskContext accessible for try-catch
---
 vars/asfMavenTlpPlgnBuild.groovy | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index b69b0f3..6a0ea54 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -20,6 +20,7 @@
  */
 
 def call(Map params = [:]) {
+  Map taskContext = [:]
   try {
     // set build retention time first
     def buildRetention
@@ -36,7 +37,7 @@ def call(Map params = [:]) {
     def jdkMin = jdks[0];
     def mavens = params.containsKey('maven') ? params.maven : ['3.0.x','3.2.x','3.3.x','3.5.x']
     def failFast = params.containsKey('failFast') ? params.failFast : true
-    def taskContext = [failFast: failFast];
+    taskContext['failFast'] = failFast;
     Map tasks = [failFast: failFast]
     boolean first = true
     for (String os in oses) {