How to manipulate the build result of a Jenkins pipeline job? -


i'm having trouble manipulate build result of jenkins pipeline. i've narrowed down following issue: know why following jenkins pipeline doesn't make build result success? instead build fails.

print "setting result failure" currentbuild.result = 'failure'  print "setting result success" currentbuild.result = 'success' 

i guess design, "result can worse" in setresult():

// result can worse if (result==null || r.isworsethan(result)) {     result = r;     logger.log(fine, + " in " + getrootdir() + ": result set " + r, logger.isloggable(level.finer) ? new exception() : null); } 

that's bummer


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -