chain personal builds
Accepted answer
The build properties should be available in ANT as environment variables, as far as I know.
This is a snippet from the ANT build script of the sample application that ships with RTC.
buildResultUUID="${buildResultUUID}"
repositoryAddress="${repositoryAddress}"
Ant provides an option to save the properties in a file. Here an example that I saved.
This is a snippet from the ANT build script of the sample application that ships with RTC.
buildResultUUID="${buildResultUUID}"
repositoryAddress="${repositoryAddress}"
Ant provides an option to save the properties in a file. Here an example that I saved.
team.scm.includeComponents=false
repositoryAddress=https\://clm.example.com\:9443/ccm/
team.scm.fetchDestination=JKEBuild\\I20140630-1543
buildDefinitionId=jke.dev
buildLabelPrefix=I
buildEngineHostName=IBM-Q5E580IOFCJ
team.scm.loadComponents=
com.ibm.team.build.internal.template.id=com.ibm.team.build.ant
team.scm.buildOnlyIfChanges=true
outputRootDirectory=JKEBuild
team.scm.createFoldersForComponents=false
team.scm.workspaceUUID=_ZUF_YABcEeSP3Y4XsWMm8g
buildEngineId=jke.dev.engine
buildLabel=I20140630-1543
requestUUID=_ewldQABcEeSP3Y4XsWMm8g
buildRequesterUserId=ralph
buildResultUUID=_ewmrYABcEeSP3Y4XsWMm8g
personalBuild=true
team.scm.acceptBeforeFetch=true
team.scm.deleteDestinationBeforeFetch=true
team.scm.componentLoadRules=
com.ibm.team.build.internal.engine.monitoring.threshold=3
Comments
Hey Ralph,
Thank you for the answer, it helps.
Do you Know to tell me who can i pass the team.scm.workspaceUUID from one build definition to another?
i tried to use overridePropertiesFile but it change the buildDefinitionID to.
thenks
Michal Sorry Michael, I don't know. The RequestTeamBuild ANT task does not allow to pass the workspace. I would have gone with the overridePropertiesFile too. If that does not work. I don't know. There have been similar questions here:
https://www.google.de/search?q=chain+build+site%3Ajazz.net
I haven#t seen anything obvious by browsing. Maybe if you dig deeper. Otherwise I would ask another question with the specifics here.
On another thought, if you would not use the JazzSCM tab in the build definition at all, you could have the load as part of the build and have a better control on what to load.