Interview Prep/Jenkins/Best practices & rapid-fire commands

Rapid-fire: how do you trigger a parameterized build with curl and follow it?

BeginnerConceptBest practices & rapid-fire commands
Answer
curl -s -X POST -u alice:$TOKEN "https://jenkins/job/deploy/buildWithParameters?ENV=dev&TAG=main-abc1234" -D - | grep -i location
# Location: https://jenkins/queue/item/812/
curl -s -u alice:$TOKEN "https://jenkins/queue/item/812/api/json?tree=executable[number,url]"
curl -s -u alice:$TOKEN "https://jenkins/job/deploy/57/logText/progressiveText?start=0"
All Jenkins questions Roadmap: Jenkins

More on Best practices & rapid-fire commands