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

Can't poll SCM accept changes from a stream?

I am trying to automate my build by pointing to a stream. My requirement is that whenever changes are delivered to my stream, build should be triggered.

I am using Jenkins poll scm option to trigger the build. But it is failing. It is asking to give a workspace.

0 votes

Comments

can you please share the way you are triggering the build, and also the exact error message?


Accepted answer

Permanent link
Assuming you're using the Team Concert plugin for Jenkins, the job needs to be configured to use RTC SCM, then you need to point it at either a build workspace (SCM only) or a build definition (SCM + Build integration).  In the latter case, it's the build definition that points to which build workspace to use.  The build workspace should be configured to flow to the stream from which changes are to be built.  You can then set the frequency with which to poll for changes in the Jenkins job.

Rainy John selected this answer as the correct answer

0 votes


2 other answers

Permanent link
Hi Rainy,

For doing something everytime changes get delivered to a stream you need a follow up action on "deliver".
This follow up action should be placed to this stream and should start a build.

In a build definition you have to define a workspace - this cannot be changed (as I know).

This means you are connected to the Stream with your workspace.
All changes which are delivered to your stream are not incoming changes within this workspace in need only to be accepted before the build begins.
This can be configured within the build definition:


Combined with the follow-up action this would build the latest changes on the stream each time a change appears.

Hope this helps,
Simon

0 votes

Comments

another possibility is to set the scheduler to some secs / mins and to define within the build definition that it should only build if there are accepted changes.

Then it would poll the Stream within the defined time range for changes and only if there are changes the build would start.


Permanent link

 Only if using the deliver hook (post commit script to trigger the Jenkins job) would have been simpler to use. Then polling would not have been necessary. 

0 votes

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
× 12,019
× 1,202
× 562
× 151

Question asked: Oct 02 '13, 8:38 a.m.

Question was seen: 7,314 times

Last updated: Jun 20 '19, 3:42 p.m.

Confirmation Cancel Confirm