Multiple Streams checkout using jenkins pipeline
One answer
Hi Rakesh,
You can use checkout steps any number of times in a pipeline job. You can also set poll:true or poll:false to disable polling for certain streams. Have you tried multiple checkout steps in the pipeline job?
Comments
Hi Lakshmi,
I have not tried multiple checkout steps in the pipeline job. Could you please let me know which plugin I need to install to enable this feature (or) what is the name of the step in pipeline.
Thanks!
You can use the Pipeline snippet generator to generate the checkout snippet. Please read the section "Generating Pipeline Snippet for Team Concert Plugin from Snippet Generator" in https://plugins.jenkins.io/teamconcert help doc.
Basically I am using 'Parallel' keyword in my pipeline script.
But I want to checkout multiple streams / workspace in parallel. I can trigger a job in Jenkins But I need a build trigger from Client hence I use build definition.
How can I configure multiple workspace & trigger build. I see only one workspace can be mapped (in source control per build definition). is this not possible via build definition ?
You cannot configure multiple workspaces in a build definition. You can have one checkout step for build definition and have the rest of the checkout steps use stream/repository workspace
Tip: You can link a RTC Build definition to a Jenkins job, but you don't have link the job back to the build definition through a checkout step, if your goal is to only trigger a Jenkins build from RTC and not track snapshot in the RTC build result. You can always push snapshot back to the RTC build result using ant tasks.