Scheduled Jenkin Build Should run only if there are "changes accepted "
The Rational Team Concert (RTC) / Jenkins setup for continuous integration. On the "Jazz Source Control" tab the check boxes labeled "Accept latest changes before loading" and "Build only if there are changes accepted" are selected.
The expected behavior for this config is: The build will run whenever new change sets show up in the stream selected as flow target for the build repository workspace. In reality the build is started every minute regardless if there are changes or no changes.
Its not supposed to catch CI builds on the RTC side. The builds have to be driven from the Jenkins side. It will use the information from Jazz SCM tab to do the CI part, but it has to be Jenkins figuring out if a build is necessary.
So set up a the build in Jenkins to do the Poll SCM for a build trigger and setup a schedule there, and everything should work.
1) Configure the Jenkins project from the below link:
2) Jenkins should be driving the build schedule using the plugin.
Enable the Poll SCM under Build Triggers, which takes the cron argument.
For example: so */5 * * * * * is every 5 minutes, looks the information that the change set is available and accept the changes and trigger the build
every 5 minute.
1. MINUTES Minutes in one hour (0-59)
2. HOURS Hours in one day (0-23)
3. DAYMONTH Day in a month (1-31)
4. MONTH Month in a year (1-12)
5. DAYWEEK Day of the week (0-7) where 0 and 7 are Sunday
If you want to schedule your build every 5 minutes, this will do the job : */5 * * * *
If you want to schedule your build every day at 8h00, this will do the job : 0 8 * * *
The scheduled builds have to be driven from the Jenkins side. It will use the information from Jazz SCM tab to do the CI part, but it has to be Jenkins.
Note: The above configuration will give us continues integration. On the "Jazz Source Control" using the Jenkins cron argument and also it will stop the scheduled build if there are no changes accepted.