Thanks .. 
The question is how to access the variables returned from Job1 in the 
pipeline .. 
Once you access the variables, can pass the same value to second job .

Job 1: Exported variable  : export Docker_image=ABC
Pipeline job :
def j1BuildResult = build job: 'J1'
def j1EnvVariables = j1BuildResult.getBuildVariables();

>> Here not able to access the variables Docker_image (This value want to 
pass to next job)


Regards,
Basanta

On Tuesday, April 16, 2019 at 8:27:23 PM UTC+5:30, ZillaYT wrote:
>
> Say you want JobA to trigger JobB
>
> On JobA's pipeline code do
>
> build job: JobB, parameters: [string(name: 'PARAMETER_NAME', value: 
> 'PARAMETER_VALUE')], wait: false
>
> The 'wait' parameter indicates if you want JobB to finish before JobA does 
> (true), or JobA to finish even before JobB does (false).
>
>
> Jenkins has built-in environment variables that you can pass around 
> between jobs, or you can pass any of JobA's variables to JobB.
>
>
> Chris
>
> On Tuesday, April 16, 2019 at 4:18:52 AM UTC-4, pbasan...@gmail.com wrote:
>>
>> Hi All,
>>
>> I have a pipeline script job and is triggering Jobs.
>> The requirement here is to pass one of the jobs output value to the next 
>> job .
>>
>> 1.How to get the value from job to the Pipeline job.
>> 2.From Pipeline how to pass that values to the next job.
>>
>> Regards,
>> Basanta
>>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7a74dc4a-0fd5-4a3f-90a7-7ebfda030142%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to