How to know builds are running from RTC?
![](http://jazz.net/_images/myphoto/cd4cf4127eaf2c19d9a708a48a0e1466.jpg)
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?
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?
3 answers
![](http://jazz.net/_images/myphoto/cd4cf4127eaf2c19d9a708a48a0e1466.jpg)
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...
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?
![](http://jazz.net/_images/myphoto/cd4cf4127eaf2c19d9a708a48a0e1466.jpg)
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:
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?