I want to disable a Jenkins job by sending a post curl request to Jenkins.
I've tried doing that using:
curl -X POST http://<server>:8080/<jobname>/disable
curl -X POST http://<server>:8080/<jobname>/disable?token=<token>
curl -u <username>:<token> POST http://<server>:8080/<jobname>/disable
but failed every time. The error i am getting is:
403 no valid crumb was included in the request
Is there a good curl based solution to this problem?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…