我希望在节点程序中构建一个curl步骤(我通常用于Jenkins)。我查看了curl文档,但我不确定如何合并以下步骤
检索碎屑
CRUMB =$(curl -s 'http://admin:TOKEN@localhost:8080/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)');
发表
curl -I -X POST http://USER:TOKEN@localhost:8080/job/JOBNAME/build -H “Jenkins-Crumb:crumnumber”