Add use of post build info json
This commit is contained in:
parent
ec8ad90953
commit
dc894e9d28
1 changed files with 3 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ def getActionJobName(postbuildactions, String action, String alternativeparamnam
|
||||||
try {
|
try {
|
||||||
jobname = postbuildactions[action]['Job']
|
jobname = postbuildactions[action]['Job']
|
||||||
} catch(Exception ex) {
|
} catch(Exception ex) {
|
||||||
|
echo "No post build actions found for action: ${action}"
|
||||||
jobname = ''
|
jobname = ''
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -58,6 +59,7 @@ def getActionJobName(postbuildactions, String action, String alternativeparamnam
|
||||||
jobname = ''
|
jobname = ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
echo "Job name for action: ${action}: ${jobname}"
|
||||||
return jobname
|
return jobname
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -96,6 +98,7 @@ def performSuccessfulBuildActions() {
|
||||||
postbuildactions = postbuildinfo['Build outcomes']['Success']['Actions']
|
postbuildactions = postbuildinfo['Build outcomes']['Success']['Actions']
|
||||||
postbuildinfoavailable = true
|
postbuildinfoavailable = true
|
||||||
} catch(Exception ex) {
|
} catch(Exception ex) {
|
||||||
|
echo "Post build info did not contain: Build outcomes/Success/Actions"
|
||||||
postbuildinfoavailable = false
|
postbuildinfoavailable = false
|
||||||
postbuildactions = null
|
postbuildactions = null
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue