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

前端 未结 5 723
执念已碎
执念已碎 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:04

    In addition to the above mentioned answers: I wanted to start a job with a simple parameter passed to a second pipeline and found the answer on http://web.archive.org/web/20160209062101/https://dzone.com/refcardz/continuous-delivery-with-jenkins-workflow

    So i used:

    stage ('Starting ART job') {
        build job: 'RunArtInTest', parameters: [[$class: 'StringParameterValue', name: 'systemname', value: systemname]]
    }
    

提交回复
热议问题