Calling a Jenkins build from outside of Jenkins?

后端 未结 10 2095
刺人心
刺人心 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:44

    With curl if you have multiple arguments to pass like a token and a parameter you might have to quote on Linux shell:

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

提交回复
热议问题