It's all about the answers!

Ask a question

"build only if there are changes accepted" doesn't work


Kevin Lou (312125) | asked Nov 20 '12, 10:10 a.m.
I am using RTC 3.0.1 and trying to set up a build (Ant - Jazz Build Engine). 
In the build definition, I set the options as follows:
  - Delete directory before loading: Unchecked
  - Create folders for components: Checked
  - Accept latest changes before loading: Checked
  - Build only if there are changes accepted: Checked

However, I find that even when there is no change to the stream, the build still happens - even though the "fetching" doesn't do anything since everything is up-to-date. In my build script, I found that "team.scm.buildOnlyIfChanges" is set to "true" and "team.scm.buildOnlyIfChanges" is not set,which I think both are correctly set. But should the build stop at the very beginning because there is no change at all.  Here is the beginning of my build log:
===
2012-11-20 10:00:10 [Jazz build engine] 
2012-11-20 10:00:10 [Jazz build engine] Substituted the following build property variables:
2012-11-20 10:00:10 [Jazz build engine] team.scm.fetchDestination = ${cyssc.cpin.fm.team.build.load.dir}   -->   team.scm.fetchDestination = C:\tmp.kevin\build\build.1
2012-11-20 10:00:10 [Jazz build engine] 
2012-11-20 10:00:10 [Jazz build engine] 
2012-11-20 10:00:10 [Jazz build engine] Substituted the following configuration element property variables:
2012-11-20 10:00:10 [Jazz build engine] com.ibm.team.build.ant : com.ibm.team.build.ant.buildFile = ${cyssc.cpin.fm.team.build.buildfile}   -->   com.ibm.team.build.ant.buildFile = C:\tmp.kevin\RTC_Build_run\build.xml
2012-11-20 10:00:10 [Jazz build engine] 
2012-11-20 10:00:10 [Jazz build engine] running on host: dms1c02494
2012-11-20 10:00:10 [Jazz build engine] Should build occur?
2012-11-20 10:00:10 [Jazz build engine] Yes: Always build a user initiated request.
2012-11-20 10:00:10 [Jazz build engine] Invoking pre-build participant "com.ibm.team.build.jazzscm"
2012-11-20 10:00:10 [Jazz build engine] Accepting changes into workspace "Kevin CPIN FM Test Stream Workspace - Build" ...
2012-11-20 10:00:10 [Jazz build engine] Fetching files to fetch destination "C:\tmp.kevin\build\build.1" ...
2012-11-20 10:00:12 [Jazz build engine] Invoking build participant "com.ibm.team.build.ant"
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar
Apache Ant version 1.7.1 compiled on June 27 2008
Buildfile: C:\tmp.kevin\RTC_Build_run\build.xml
Detected Java version: 1.6 in: C:\Program Files\Java\jre7
Detected OS: Windows XP
parsing buildfile C:\tmp.kevin\RTC_Build_run\build.xml with URI = file:/C:/tmp.kevin/RTC_Build_run/build.xml
Project base dir set to: C:\tmp.kevin\RTC_Build_run
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
parsing buildfile jar:file:/C:/IBM/TeamConcertBuild/buildsystem/buildtoolkit/ant-contrib-1.0b3.jar!/net/sf/antcontrib/antlib.xml with URI = jar:file:/C:/IBM/TeamConcertBuild/buildsystem/buildtoolkit/ant-contrib-1.0b3.jar!/net/sf/antcontrib/antlib.xml
Build sequence for target(s) `all' is [init, all]
Complete build sequence is [init, all, clean, doZip, ]

Accepted answer


permanent link
Tim Mok (6.6k38) | answered Nov 20 '12, 10:49 a.m.
JAZZ DEVELOPER
		2012-11-20 10:00:10 [Jazz build engine] Should build occur?
		2012-11-20 10:00:10 [Jazz build engine] Yes: Always build a user initiated request.
	
	
It looks like you initiated the build. I believe that setting is only for scheduled builds.
Kevin Lou selected this answer as the correct answer

One other answer



permanent link
Kevin Lou (312125) | answered Nov 20 '12, 12:35 p.m.
 Thanks for the quick response. I did not know that those settings are for the sche only. duled builds

Your answer


Register or 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.