Skip to main content

How to pass parameter to downstream job in Pipeline job?

Comments

7 comments

  • Tim Kalbas

    Although this answer is helpful if you're passing a string parameter, it would be even more useful if it showed the syntax for passing integers and other data type.

    0
  • Wojciech Duda

    It would also be better if you knew how to find the name of the job you want to start. what if it is in another folder?

    0
  • Denys Digtiar

    Tim/Wojciech,

    The best and easiest way to get the step right is to use Snippet Generator. It will give you an UI familiar from the Freestyle Projects and as a result a valid Pipeline code that you can just paste in your Pipeline.

    2
  • Craig Rodrigues

    I have a job with about 25 parameters.

    Is there a way to pass all the parameters down to downstream jobs, instead of

    specifying each parameter inside the pipeline script's build command?

    0
  • Denys Digtiar

    Hi Craig,

    Defaults should kick in if you omit the parameter. Just supply the parameters that need overriding.

    0
  • Suresh Gupta

    Any idea how to read this parameter in downstream job ? I tried echo "${ParamA}" its failing giving error as missing property ParamA.

    0
  • Suresh Gupta

    Thanks got it. I missed to add parameters in upstream job.

    0

Please sign in to leave a comment.

About CloudBees Support

Our Support Engineers are available to help with any questions or problems you may have with any of our products.