Add use of post build info json
This commit is contained in:
parent
a5b06d79a9
commit
ec8ad90953
1 changed files with 7 additions and 2 deletions
|
|
@ -92,8 +92,13 @@ def performSuccessfulBuildActions() {
|
|||
def postbuildinfo = readJSON(text: POST_BUILD_INFO)
|
||||
def postbuildjsontext = writeJSON(returnText: true, json: postbuildinfo, pretty: 1)
|
||||
echo "Post build info:\n${postbuildjsontext}"
|
||||
postbuildactions = postbuildinfo['Build outcomes']['Success']['Actions']
|
||||
postbuildinfoavailable = true
|
||||
try {
|
||||
postbuildactions = postbuildinfo['Build outcomes']['Success']['Actions']
|
||||
postbuildinfoavailable = true
|
||||
} catch(Exception ex) {
|
||||
postbuildinfoavailable = false
|
||||
postbuildactions = null
|
||||
}
|
||||
}
|
||||
def String buildselector = "<SpecificBuildSelector plugin='copyartifact@1.46.2'><buildNumber>${BUILD_NUMBER}</buildNumber></SpecificBuildSelector>"
|
||||
deployjob(buildselector, postbuildactions, 'Deploy doxygen', 'DOXYGEN_DEPLOY_JOB')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue