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
Post a Comment