Hi.

I wanted to manully change last build from stable to unstable. Is it possible? I tried using Groovy

def job = Jenkins.instance.getItem("GOPAC-build-alfa");
def build = job.getLastStableBuild();
build.setResult(Result.UNSTABLE);

But that throws `cannot change build result while in COMPLETED`. So can I somehow force the result?

Regards,
Nux.

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c8c7921f-5f72-8931-a91f-ff3184c4cc12%40mol.com.pl.
For more options, visit https://groups.google.com/d/optout.

Reply via email to