Trigger build via URL gives me no crumb included in request error

后端 未结 2 728
时光取名叫无心
时光取名叫无心 2021-01-21 05:19

I\'ve been trying to trigger a build via the Jenkins API so far with no success. I configured a job on \'Trigger builds remotely\' and set a token, \'abc\'.

Then in post

2条回答
  •  失恋的感觉
    2021-01-21 05:33

    Pass in POST headers, "Jenkins-Crumb:5740ac1b614ca59f5dd5ef151b2895b3".

    Your Crumb can be obtained from the URL http://jenkins:8080/crumbIssuer/api/xml

    In the POST body, use the appropriate Jenkins XML API request.

    Here is my Postman images with parameters:

提交回复
热议问题