Calling a Jenkins build from outside of Jenkins?

后端 未结 10 2091
刺人心
刺人心 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 16:28

    Here is a link to the documentation: Jenkins Remote Access API.

    Check out the Submitting jobs section.

    In your job configuration you setup a token and then create a POST request to JENKINS_URL/job/JOBNAME/build?token=TOKEN. That's probably the most basic usage.

提交回复
热议问题