if you code it like this:
stage ('Starting test job') {
buildobj = build job: 'RunTestJob', parameters: [[$class:
'StringParameterValue', name: 'aaa', value: aaa]]}
you might get something useful back by doing this: (i have not tried it)
buildobj.getBuildVariables()
available methods for buildobj can be found here:
https://github.com/jenkinsci/workflow-support-plugin/blob/master/src/main/java/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.java
On Fri, Jun 23, 2017 at 3:32 PM, Danny Rehelis <[email protected]> wrote:
> Lets say I execute downstream job -
>
> stage ('Starting test job') {
> build job: 'RunTestJob', parameters: [[$class: 'StringParameterValue',
> name: 'aaa', value: aaa]]}
>
> Is it possible pass environment vars or any other vars I set in downstream
> job back to its parent?
>
> --
> 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 [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CAObRFCW5uPVjEGMLtvBdS4UzaKW%
> 3Dc2m%3DUfM%2BeHrzDWMZcEgAJQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAObRFCW5uPVjEGMLtvBdS4UzaKW%3Dc2m%3DUfM%2BeHrzDWMZcEgAJQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Dick Ginga
Build Engineer
[email protected]
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/CAL3PpaVb-ri7Nnwak1mJwDthVB_Uxzr4YVH-fnYt%3DCsHBAPi1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.