cliffano / nestor

Jenkins CLI and node.js client
http://blog.cliffano.com/tag/nestor/
MIT License
182 stars 27 forks source link

nestor stop <BUILD> throws internal 500 #18

Closed chr0n1x closed 11 years ago

chr0n1x commented 11 years ago
Error 500
Status Code: 500
Exception: java.lang.IllegalAccessException: POST is required for public synchronized
org.kohsuke.stapler.HttpResponse hudson.model.AbstractBuild.doStop() throws java.io.IOException,javax.servlet.ServletException
Stacktrace: javax.servlet.ServletException: java.lang.IllegalAccessException:
POST is required for public synchronized org.kohsuke.stapler.HttpResponse
hudson.model.AbstractBuild.doStop() throws java.io.IOException,javax.servlet.ServletException

If you're posting to the REST endpoint, then this is probably a bug on jenkinsCI.

cliffano commented 11 years ago

That error is caused by this change https://github.com/jenkinsci/jenkins/commit/61921fbb71976434a70ab72f1856f3da45f7eecf#L0R1364

Stopping a build now mandates a POST (it wasn't prior to v1.502). And apology for picking up this issue so late. I wish it's my day job to maintain all these productivity tools :).

Fix coming soon.

cliffano commented 11 years ago

Fix included in v0.1.7 . Please upgrade and give it a try.