From dc894e9d280726cf9891ccd56418d1f669ea9c53 Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Wed, 17 Nov 2021 21:52:35 +0000 Subject: [PATCH] Add use of post build info json --- build/postactions.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/postactions.groovy b/build/postactions.groovy index b5662c7..728765f 100644 --- a/build/postactions.groovy +++ b/build/postactions.groovy @@ -39,6 +39,7 @@ def getActionJobName(postbuildactions, String action, String alternativeparamnam try { jobname = postbuildactions[action]['Job'] } catch(Exception ex) { + echo "No post build actions found for action: ${action}" jobname = '' } } else { @@ -58,6 +59,7 @@ def getActionJobName(postbuildactions, String action, String alternativeparamnam jobname = '' } } + echo "Job name for action: ${action}: ${jobname}" return jobname } @@ -96,6 +98,7 @@ def performSuccessfulBuildActions() { postbuildactions = postbuildinfo['Build outcomes']['Success']['Actions'] postbuildinfoavailable = true } catch(Exception ex) { + echo "Post build info did not contain: Build outcomes/Success/Actions" postbuildinfoavailable = false postbuildactions = null }