Re: Cancel a Queue via Jenkins API

2013-08-09 Thread tiago fernandez
'' means simply that we > send an empty POST body. > > On 06.08.2013, at 20:37, tiago fernandez > > wrote: > > > Hello, > > > > I want to cancel a queue item in a Job that has permissions set. > > I have tried for example to cancel a qu

Remove a Queue item through a Groovy script

2013-08-07 Thread tiago fernandez
Hello, I want to cancel a Queue item through a groovy script. The script I have is something like this (I do a post because it is specified that to remove an queue item. And queue item id I obtain it from another part of the code using json api): def urlString = 'http:///queue/cancelItem' d

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