Jenkins Remote Trigger Not Working

前端 未结 9 725
自闭症患者
自闭症患者 2021-02-03 22:54

I am getting the following error when i try triggering a build using the following command:

curl http://jenkins_server:port/jenkins/job/job_name/build?token=token_name

9条回答
  •  迷失自我
    2021-02-03 23:21

    Install Parameterized Build plugin

    https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build

    If you are using an authorization token to trigger the builds (Job -> Configure -> 'Build Triggers' -> 'Trigger builds remotely (e.g., from scripts)'), you can access:

    curl -X POST http://server/job/myjob/buildWithParameters?token=TOKEN&PARAMETER=Value

提交回复
热议问题