cancelQueuedBuild
Cancel pending Jenkins builds before execution to free resources and manage queue efficiently by specifying job name and optional queue ID.
Instructions
Cancel a pending/queued Jenkins build that hasn't started yet
Input Schema
Name | Required | Description | Default |
---|---|---|---|
jobFullName | Yes | Full path of the Jenkins job | |
queueId | No | Specific queue item ID to cancel (optional, cancels all queued items for the job if not provided) |
Input Schema (JSON Schema)
{
"properties": {
"jobFullName": {
"description": "Full path of the Jenkins job",
"type": "string"
},
"queueId": {
"description": "Specific queue item ID to cancel (optional, cancels all queued items for the job if not provided)",
"type": "integer"
}
},
"required": [
"jobFullName"
],
"type": "object"
}