Trigger parameterized build with curl and crumb

前端 未结 7 868

I\'ve seen similar posts to this on SO, but not quite exactly what I am trying to do (or at least no full examples of a command to run).

I am trying to remotely trig

7条回答
  •  囚心锁ツ
    2020-12-03 01:34

    This Worked

    crumb=$(curl -u "user:pass" -s 'http://jenkins_URL/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)')
    
    curl -u "user:pass" -H "$crumb" -X POST **http://jenkins_URL/job/ENV/build?delay=0sec**
    

    Note: Get this POST URL by right click and copy the build now link.

提交回复
热议问题