Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Multiple Streams checkout using jenkins pipeline

Hello,
     I want to check out 4 streams / workpsaces to one folder using Jenkins pipeline job. I am able to execute this in freestyle job using 'multiple scm' plugin. But how can this be done in Pipeline job ?

Thanks!

0 votes



One answer

Permanent link
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?

0 votes

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.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,131
× 151
× 15

Question asked: Jun 23 '20, 1:31 a.m.

Question was seen: 2,517 times

Last updated: Jun 29 '20, 5:53 a.m.

Confirmation Cancel Confirm