How can I trigger another job from a jenkins pipeline (jenkinsfile) with GitHub Org Plugin?

前端 未结 5 719
执念已碎
执念已碎 2020-11-28 18:38

How can I trigger build of another job from inside the Jenkinsfile?

I assume that this job is another repository under the same github organization, on

5条回答
  •  清歌不尽
    2020-11-28 19:14

    The command build in pipeline is there to trigger other jobs in jenkins.

    Example on github

    The job must exist in Jenkins and can be parametrized. As for the branch, I guess you can read it from git

提交回复
热议问题