Jenkins - passing variables between jobs?

前端 未结 10 1663
你的背包
你的背包 2020-11-28 06:53

I have two jobs in jenkins, both of which need the same parameter.

How can I run the first job with a parameter so that when it triggers the second job, the same pa

10条回答
  •  猫巷女王i
    2020-11-28 07:38

    1.Post-Build Actions > Select ”Trigger parameterized build on other projects”

    2.Enter the environment variable with value.Value can also be Jenkins Build Parameters.

    Detailed steps can be seen here :-

    https://itisatechiesworld.wordpress.com/jenkins-related-articles/jenkins-configuration/jenkins-passing-a-parameter-from-one-job-to-another/

    Hope it's helpful :)

提交回复
热议问题