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

How to know builds are running from RTC?

I have a set of existing build scripts that are running in a ClearCase context. I'd like to update them in a way that the calls to ClearCase would be replaced by calls to the build toolkit ant tasks. However, the build scripts need to "know" that they are executing in a Jazz context instead of a ClearCase context.

So my question: is there an environment variable or a property that I can test against, which would reveal that the executing context is RTC?

0 votes



3 answers

Permanent link
I don't there is anything by default but you can add any kind of property
you want for your build definition that will then be defined in the ant
build for you. Go to the Properties page in the build definition editor for
your build definition. From there you can add a provide that will then be
defined by the Jazz Build Engine when it executes your ant build script.

Don Weinand
Jazz Team Build

"patrick.renaud" <patrick> wrote in
message news:gi5oc0$sgb$2@localhost.localdomain...
I have a set of existing build scripts that are running in a ClearCase
context. I'd like to update them in a way that the calls to ClearCase
would be replaced by calls to the build toolkit ant tasks. However,
the build scripts need to "know" that they are executing in
a Jazz context instead of a ClearCase context.

So my question: is there an environment variable or a property that I
can test against, which would reveal that the executing context is
RTC?

0 votes


Permanent link
Yes, I did that already. I created a property named is_fromRTC with a value of "yes" in the build definition. It works. But I was hoping for an internal property that I would not have to set myself...

0 votes


Permanent link
I don't know if there already is one, but if not, I assume it would be
easy to set one as part of your Jazz build definition.

Cheers,
Geoff

patrick.renaud wrote:
I have a set of existing build scripts that are running in a ClearCase
context. I'd like to update them in a way that the calls to ClearCase
would be replaced by calls to the build toolkit ant tasks. However,
the build scripts need to "know" that they are executing in
a Jazz context instead of a ClearCase context.

So my question: is there an environment variable or a property that I
can test against, which would reveal that the executing context is
RTC?

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: Dec 15 '08, 9:04 a.m.

Question was seen: 5,827 times

Last updated: Dec 15 '08, 9:04 a.m.

Confirmation Cancel Confirm