Add use of post build info json

This commit is contained in:
Dan Hawkins 2021-11-17 21:52:35 +00:00
commit dc894e9d28

View file

@ -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
}