It's all about the answers!

Ask a question

RTC Ant Attribute Questions


Randy Lei (3355) | asked Feb 22 '12, 12:32 p.m.
I'm using 3.0.1.

1. Is there an attribute (or a way) to detect this is a personal build or not?

2. Is there an attribute (or a way) to detect if this is a scheduled build?

3. Is there a way to prevent users from requesting builds for certain build definitions? (i.e. I only want to allow scheduled builds for these build definitions).

Thanks in advance.

3 answers



permanent link
John Czukkermann (3655) | answered Feb 22 '12, 1:47 p.m.
1) Yes, the personalBuild property will be set to true for personal builds.

2) I don't see any properties, but you might be able to accomplish that via the buildRequesterUserId property, if you are using a functional ID assigned to automated builds. Requested builds from users should not be done using a functional ID.

3) I don't think so, for your sake, let's home I'm wrong.

John Czukkermann
IBM Corp.
z/OS Management Facility Design and Development

permanent link
Randy Lei (3355) | answered Feb 22 '12, 3:59 p.m.
For some reason, I don't see buildRequesterUserID or activityID being set with some echo statement in my Ant build.xml. PersonalBuild does get set though.



My RTC server is 3.0.1 but my local client is 3.0, it should work, shouldn't it?


<echo>
Some Build Debugging info
The activityId is defined as ${activityId}
The buildRequesterUserId is ${buildRequesterUserId}
personalBuild is ${personalBuild}
</echo>


and in the log I see


[echo] Some Build Debugging info
[echo] The activityId is defined as ${activityId}
[echo] The buildRequesterUserId is ${buildRequesterUserId}
[echo] personalBuild is true

permanent link
Karthik Krishnan (8825117163) | answered Feb 23 '12, 9:56 a.m.
For some reason, I don't see buildRequesterUserID or activityID being set with some echo statement in my Ant build.xml. PersonalBuild does get set though.



My RTC server is 3.0.1 but my local client is 3.0, it should work, shouldn't it?


<echo>
Some Build Debugging info
The activityId is defined as ${activityId}
The buildRequesterUserId is ${buildRequesterUserId}
personalBuild is ${personalBuild}
</echo>


and in the log I see


[echo] Some Build Debugging info
[echo] The activityId is defined as ${activityId}
[echo] The buildRequesterUserId is ${buildRequesterUserId}
[echo] personalBuild is true


AFAIK buildRequesterUserID is available only from RTC 3.0.1.

Have you tried from 3.0.1 client?

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.