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.

Change build status #4274

jintaeson ·

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.

  • replies 4
  • views 558
  • stars 0
robinshen ADMIN ·

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.

jintaeson ·

If so, resources will be allocated meaninglessly while waiting, is there any way to solve this problem?

jintaeson ·

So is it possible to turn successful builds into failures?
Can that cause problems?

robinshen ADMIN ·

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:


import com.pmease.quickbuild.model.Build;
def someBuild = system.buildManager.load(someBuildId);
someBuild.setErrorMessage("some error message");;

Currently side effect is that the build statistics will not be accurate.