On 15.12.2015, at 14:56, tushar singhal <tusharsinghalro...@gmail.com> wrote:

> how to cancel build queue jobs in jenkins by only using the "build number" 
> through REST API, which are not started by jenkins and are in its build 
> queue. 

Trigger the build programmatically using the documented API (at 
/job/JOBNAME/api), and you know the queue item ID. Alternatively, access 
/queue/api/xml to find out queue IDs of current queue items.

Then just POST to /queue/cancelItem?id=1234 with 1234 being the queue item ID 
you want to cancel.

-- 
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/F03A9C53-CD54-41A7-96BB-D2F1FF45F836%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to