Interview Prep/Jenkins/Agents, executors & the queue

Build stuck: `Still waiting to schedule task. ‘Jenkins’ doesn’t have label ‘docker’`

BeginnerTroubleshootingAgents, executors & the queue
Answer

Likely causes → No node or pod template has the label docker; the label is misspelled; the agent with that label was removed.

Diagnose →

curl -s -u admin:$TOKEN "https://jenkins/computer/api/json?tree=computer[displayName,offline,assignedLabels[name]]" | jq

Also check Manage Jenkins > Clouds pod template labels.

Fix → Add the label to the right node or pod template, or fix the Jenkinsfile label expression.

Prevent → Keep labels documented and managed in JCasC.

All Jenkins questions Roadmap: Jenkins

More on Agents, executors & the queue