Jenkins - How to get and use upstream info in downstream

前端 未结 5 1462
我在风中等你
我在风中等你 2020-12-25 15:15

Executing upstream job called \"A\". On success of A executing test cases which is downstream project \"B\". But while sending mail from B we have to incorporate upstream pr

5条回答
  •  攒了一身酷
    2020-12-25 16:20

    MeowRude's answer helped me. To repcap it, in upstream job:

    build job: 'mail-test', parameters: [[$class: 'StringParameterValue', name: 'VERSION_NUMBER', value: '1.0.0.0']]
    

    And in downstream job:

    echo "${params.VERSION_NUMBER}"
    

提交回复
热议问题