Re: Cancel a Queue via Jenkins API

2013-08-09 Thread tiago fernandez
Thanks a lot for the rapid response, Now I see it has to be a POST, do you know how to do it with groovy and what import I have to use for that? Thanks. On Tuesday, August 6, 2013 4:07:00 PM UTC-3, Daniel Beck wrote: > Send a POST request. > > https://en.wikipedia.org/wiki/POST_%28HTTP%29

Re: Cancel a Queue via Jenkins API

2013-08-06 Thread Daniel Beck
Send a POST request. https://en.wikipedia.org/wiki/POST_%28HTTP%29 How this works depends on how you send the requests in the first place. Example using the `curl` command line program: curl --data '' 'http://jenkins/queue/cancelItem?id=65' `--data` causes the request to be sent as POST, '

Cancel a Queue via Jenkins API

2013-08-06 Thread tiago fernandez
Hello, I want to cancel a queue item in a Job that has permissions set. I have tried for example to cancel a queue item with ID 65 (I get the ID from the Queue Api: queue/api/json?pretty=true): http:///queue/cancelItem?id=65 or using the token that job has set: http:///queue/cancelItem?tok