Search code examples
buildjenkinsbuild-process

Jenkins - How can i pass parameters from the Upstream to Downstream


I have 3 builds: A - is the Master build which control the flow B- Anoter build C- will be executed after B I want to add a String parameter to A so the user will enter some String manually, and i'm not sure how can i path this parameter to B. lets say that this is my build flow:

build("B") build("C") I don't know how can i path the parameter to B, should i do that from the build flow or from the B build configuration and how can i do that.

Thanks in advance Alex


Solution

  • Something like this:

    build("B", B_parameter: params["A_parameter"])<br>
    build("C")
    

    https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin