It's all about the answers!

Ask a question

chain personal builds


Michal Steinberger (181828) | asked Jul 15 '14, 2:53 a.m.
 Hello,
I'm trying to chain personal builds automatically using Ant requestTeamBuild task.
i need to set personalBuild property and set the workspaceUUID.
How can i get those properties from the first build and set them into the second build?

Thanks,
Michal  

Accepted answer


permanent link
Ralph Schoon (63.6k33646) | answered Jul 16 '14, 3:10 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.

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

Michal Steinberger selected this answer as the correct answer

Comments
Michal Steinberger commented Jul 21 '14, 4:46 a.m.

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 


Ralph Schoon commented Jul 21 '14, 4:55 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.


Ralph Schoon commented Jul 21 '14, 4:57 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.

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.