Daniel Beck (2017-02-08 16:01):
On 08.02.2017, at 15:48, 'Maciej Jaros' via Jenkins Users 
<jenkinsci-users@googlegroups.com> wrote:

But that throws `cannot change build result while in COMPLETED`. So can I 
somehow force the result?
While there's probably a way to accomplish that, it's likely other things will 
break as a result of this as (obviously) Jenkins components don't expect build 
results to change after a build is finished.

This looks a lot like an X/Y problem kind of situation. What are you actually 
trying to accomplish?

The problem is the build in question should have failed as it is not functional (some artifacts don't work). Other jobs take artifacts from a last stable build from this job and deploy this to test (staging) server. So this works like so:
build job --stable artifacts--> deploy job --> test server

I ended up doing manual change which seems to work (at least in Jenkins 1.x):

    1. Go to `[jenkins-data]/jobs/[YOUR-job]/builds/[number]/`.
    2. Open `build.xml`.
    3. Find `<result>` tag.
    4. Change resolution to `UNSTABLE`.
    5. Reload Jenkins configuration from disk.
6. Make sure `Last stable build (#[number])...` is correct (not the one you just changed).

And it seems to work (at least it works if artifacts wasn't removed for the older build).

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/b1fdbaed-5911-a3e9-5303-6580b8430c4c%40mol.com.pl.
For more options, visit https://groups.google.com/d/optout.

Reply via email to