Thanks for your responses, below is the pipeline code which I have and I am 
using build step to invoke another pipeline job. This build step should 
invoke "XX-Trunk-Pipeline-Test-Setup" job once but it is invoking it twice 
once with parameters and second time without parameters. It is also 
invoking "YY-Trunk-Pipeline-Test-Setup" and "ZZ-Trunk-Pipeline-Test-Setup" 
jobs which are not even set in the code.


node {
    

    def tests = [xxSelenium: "XX-Trunk-Pipeline-Test-Setup"]

    
    for (def entry in entrySet(tests)) {
        if("${Include_Tests}" == "true") {
            stage "${entry.key} Test Setup:"
                build job: "${entry.value}", propagate: false, wait: false, 
parameters: [[$class: 'StringParameterValue', name: 'xx_db_user', value: 
"${xx_db_user}"], [$class: 'StringParameterValue', name: 'xx_db_pass', 
value: "${xx_db_pass}"], [$class: 'StringParameterValue', name: 
'xx_db_baseurl', value: "${xx_db_baseurl}"], [$class: 
'StringParameterValue', name: 'xx_db_user', value: "${xx_db_user}"], 
[$class: 'StringParameterValue', name: 'xx_db_pass', value: 
"${xx_db_pass}"], [$class: 'StringParameterValue', name: 'xx_db_baseurl', 
value: "${xx_db_baseurl}"], [$class: 'StringParameterValue', name: 
'base_url', value: "${base_url}"], [$class: 'StringParameterValue', name: 
'xx_url', value: "${xx_url}"], [$class: 'StringParameterValue', name: 
'xx_url', value: "${xx_url}"], [$class: 'BooleanParameterValue', name: 
'Run_Regression', value: "${Run_Regression}".toBoolean()]]
        }
    }

}



On Sunday, July 2, 2017 at 3:11:09 PM UTC-4, colourmeamused wrote:
>
> Echoing Michael, need more info. But maybe you can use the 'build' step 
> <https://jenkins.io/doc/pipeline/steps/pipeline-build-step/#build-build-a-job>
>  
> instead of trigger chains?
>
> On Friday, June 30, 2017 at 5:13:07 AM UTC+10, Venkata Burra wrote:
>>
>> Hi,
>>
>>  
>>
>> I have a question regarding a pipeline job.
>>
>>  
>>
>> I have Pipeline Job1, Pipeline Job2 and Pipeline Job3 jobs created in 
>> Jenkins. The Pipeline Job1 is coded to trigger only Pipeline Job2 depending 
>> on some condition. But the Pipeline Job1 is triggering Pipeline Job2 once 
>> and triggering Pipeline Job2 and Pipeline Job3. Please advice me how can I 
>> resolve this issue.
>>
>>  
>>
>

-- 
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/fa6ae499-302f-484c-a389-14342cdd0b03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to