Your browser was unable to load all of the resources. They may
have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.
Can I change the build status back to "building" after the build is finished?
I want to change the build status to "building" after the build is completed.
After receiving the job result of another system, I want to update the build status according to the result.
This violates QB assumptions and can cause problems. I'd suggest to make your build step running some custom code waiting for other system status, instead of finishing and changing status later.
If so, resources will be allocated meaninglessly while waiting, is there any way to solve this problem?
So is it possible to turn successful builds into failures?
Can that cause problems?
You may arrange your steps some like below:
container step (allocate resource here)
steps actually doing things
steps waiting for other builds to finish
This way resource will be released after the container step.
If you really want to change build status, call below groovy code:
def someBuild = system.buildManager.load(someBuildId);
someBuild.setErrorMessage("some error message");
Currently side effect is that the build statistics will not be accurate.