Jenkins Remote Trigger Not Working

前端 未结 9 736
自闭症患者
自闭症患者 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:19

    I also have faced the same issue and resolved it.

    Consider, you have 2 Jenkins A and B. If you want to execute a build job present in Jenkins B, then you have to give the API token of Jenkins B. If you provide the API token of Jenkins A, it will show the authentication issue only.

    This is the mistake I have did and it got resolved once I have changed the API token properly according to the required Jenkins.

提交回复
热议问题