From a5b06d79a9f514b642887f86f545f5d3737facfe Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Wed, 17 Nov 2021 21:41:53 +0000 Subject: [PATCH] Add use of post build info json --- build/postactions.groovy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build/postactions.groovy b/build/postactions.groovy index fbc71a4..0092f44 100644 --- a/build/postactions.groovy +++ b/build/postactions.groovy @@ -34,9 +34,13 @@ */ def getActionJobName(postbuildactions, String action, String alternativeparamname) { - def String jobname + def String jobname = '' if (postbuildactions) { - jobname = postbuildactions[action]['Job'] + try { + jobname = postbuildactions[action]['Job'] + } catch(Exception ex) { + jobname = '' + } } else { if (params[alternativeparamname] != null) { if (params[alternativeparamname]) {