diff --git a/build/postactions.groovy b/build/postactions.groovy index 0092f44..b5662c7 100644 --- a/build/postactions.groovy +++ b/build/postactions.groovy @@ -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 = "${BUILD_NUMBER}" deployjob(buildselector, postbuildactions, 'Deploy doxygen', 'DOXYGEN_DEPLOY_JOB')