Automatic build after code delivery / SCM polling in RTC
3 answers
Hi Narasimha,
In RTC when you create a build definition, please enable "Jazz Source Control" pre-build. Then in the "Jazz Source Control" tab of the bui,d definition, you can enable "Build only if there are changes accepted".
After enabled the scheduler for the build definition, RTC build will check if there's any code changes on the stream. If there is, the build workspace will accept changes from the stream and starts build.
You can refer to the articles below about setup continuous integration build in RTC:
https://jazz.net/library/article/474
https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.build.doc/topics/tcreatebuilddefinition.html&scope=null
https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.concert.dotnet.doc/topics/c_build_workspaces.html&scope=null
Comments
I enabled the check box and I started the scheduler for every minute build.
I found build requests are created every minute but I don't build progress in builds section.
Are builds happening background, how can I see those results....???
I have edited your post to be a comment under this answer. In the future, please post as a comment if you're replying to an answer so that it is easier for others to follow a conversation thread.
Every minute is probably too quick - we had problems with that short a duration.
You might have better luck with something a little larger, say 5 minutes.
Hi Jeff,
I've set 30 mins for continuous build and I found scheduled request is created but build is not happening.
Build Engine Log at command prompt:
2014-09-02 11:06:46 [Jazz build engine] Found a scheduled request for build defi
nition "Sample App build def".
2014-09-02 11:06:46 [Jazz build engine] Waiting for request...
Can I see any error log for this issue....If yes, please tell me the location.
I just unchecked "Build If only changes are accepted"...Now builds are happening even though I didn't make changes to my repository.
Earlier builds were not happened since I didn't make changes to my source.
Thank you all for inputs
Comments
Hi,
If you have the "Build only if there are changes accepted" enabled in Jazz Source Control tab of the build definition, a build will be made only when new change set has been delivered to the stream and then accept into the build workspace.
You saw the JBE log:
-----
Found a scheduled request for build definition "Sample App build def".
-----
is because JBE started the build on schedule but found no changes in build workspace so it aborted the build then.
Hello, I have configured in above said manner. :
"Build only if there are changes accepted" is checked. Basically new change set has been delivered to the stream and then accept into the build workspace.
Schedule is enabled in Build definition.
But still I don't see build getting triggered.how can this be achieved such that build get triggered only when there is a change in build workspace ?