Pipeline calling pipeline calling freestyle job

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pipeline calling pipeline calling freestyle job

ctoverend
I have:

booleanParam(name: 'force_build', value: force_build.toBoolean())

This works
    Pipeline with parameter (force_build=True) -> freestsyle job with parameter (force_build=False)

    The value of force_build in the freestyle job is now True

This does not work.
     Pipeline job with a parameter (force_build=True) -> Pipeline with parameter (force_build=False) -> freestsyle job with parameter (force_build=False)

    The value of force_build in second Pipeline is still False
    The value of force_build in the freestyle job is still False
    My expectation is that 1st pipeline force_build=True will override the other parameters down the call stack.


Is this not supported?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d76ff653-1ee0-4ae2-953c-5d6bbb0dde75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline calling pipeline calling freestyle job

Robert Hales
How are you calling the jobs? IE, how does the pipeline job trigger the other pipeline or freestyle jobs? 

On Thursday, October 26, 2017 at 10:11:59 AM UTC-6, Chris Overend wrote:
I have:

booleanParam(name: 'force_build', value: force_build.toBoolean())

This works
    Pipeline with parameter (force_build=True) -> freestsyle job with parameter (force_build=False)

    The value of force_build in the freestyle job is now True

This does not work.
     Pipeline job with a parameter (force_build=True) -> Pipeline with parameter (force_build=False) -> freestsyle job with parameter (force_build=False)

    The value of force_build in second Pipeline is still False
    The value of force_build in the freestyle job is still False
    My expectation is that 1st pipeline force_build=True will override the other parameters down the call stack.


Is this not supported?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/082c848b-25c2-4246-8ee3-8957191542f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.