Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

chain personal builds

 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  

0 votes


Accepted answer

Permanent link
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

0 votes

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.

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019

Question asked: Jul 15 '14, 2:53 a.m.

Question was seen: 3,422 times

Last updated: Jul 21 '14, 4:57 a.m.

Confirmation Cancel Confirm