Calling a Jenkins build from outside of Jenkins?

后端 未结 10 2070
刺人心
刺人心 2020-11-27 15:49

I am new to Jenkins, and I\'m not sure if this is possible, but I would like to set up a web interface where somebody could click \"Start Job\" and this will tell Jenkins to

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-27 16:27

    curl -H POST http://USERNAME:PASSWORD@JENKINS_HOST:PORT/job/JOB_NAME/build?token=YOUR_TOKEN
    

    Set YOUR_TOKEN at job configuration -> build triggers -> Trigger builds remotely.

提交回复
热议问题