Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

Creating a build definition via api

I see this site has good documentation on requesting a build via the api. However, can someone point me to documentation on also creating a build definition via the api. The issue is this, we need to pass two parameters to the build. This is normally done via the arguments section of the build definition, so the thought is that we should programatically first create the build definition with those parameters, then programatically request a build.

0 votes



5 answers

Permanent link
You normally only create a few build definitions, and the GUI is the
best place to create them. Why would you want/need to create a build
definition programatically?

Cheers,
Geoff

On 9/8/2011 12:53 PM, adefarlo wrote:
I see this site has good documentation on requesting a build via the
api. However, can someone point me to documentation on also creating
a build definition via the api. The issue is this, we need to pass
two parameters to the build. This is normally done via the arguments
section of the build definition, so the thought is that we should
programatically first create the build definition with those
parameters, then programatically request a build.

0 votes


Permanent link
For us, a build is not a source code build but building a product in our core claims processing system. We are using the RTC build function to kick off a custom app which builds a product in the claims system. We need to pass a parameters to that program which indicate the product id to build and the target environment to build it in....

You normally only create a few build definitions, and the GUI is the
best place to create them. Why would you want/need to create a build
definition programatically?

Cheers,
Geoff

On 9/8/2011 12:53 PM, adefarlo wrote:
I see this site has good documentation on requesting a build via the
api. However, can someone point me to documentation on also creating
a build definition via the api. The issue is this, we need to pass
two parameters to the build. This is normally done via the arguments
section of the build definition, so the thought is that we should
programatically first create the build definition with those
parameters, then programatically request a build.

0 votes


Permanent link
My comment should apply whether you are building source code or are
building a product in a claims processing system. You don't want to
generate a new build definition for every variant ... you normally want
to abstract that variance in build properties. In particular, you'd
normally want the parameters that indicate the product id and the target
environment to be build properties, rather than creating a separate
build definition for every product-id/target-environment combination.

Cheers,
Geoff

On 9/8/2011 5:08 PM, adefarlo wrote:
For us, a build is not a source code build but building a product in
our core claims processing system. We are using the RTC build
function to kick off a custom app which builds a product in the
claims system. We need to pass a parameters to that program which
indicate the product id to build and the target environment to build
it in....

gmclemmwrote:
You normally only create a few build definitions, and the GUI is the

best place to create them. Why would you want/need to create a
build
definition programatically?

Cheers,
Geoff

On 9/8/2011 12:53 PM, adefarlo wrote:
I see this site has good documentation on requesting a build via
the
api. However, can someone point me to documentation on also
creating
a build definition via the api. The issue is this, we need to pass
two parameters to the build. This is normally done via the
arguments
section of the build definition, so the thought is that we should
programatically first create the build definition with those
parameters, then programatically request a build.

0 votes


Permanent link
You should not need to create a new build definition each time. You can override the value of build properties when requesting a build. The API to use for requesting a build is ITeamBuildRequestClient.requestTeamBuild.

0 votes


Permanent link
Thanks! It was not clear to me that the properties could be passed in the request. I thought they had to be set in the definition...

0 votes

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

Question asked: Sep 08 '11, 12:34 p.m.

Question was seen: 5,240 times

Last updated: Sep 08 '11, 12:34 p.m.

Confirmation Cancel Confirm