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

RTC Ant Attribute Questions

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.

0 votes



3 answers

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

0 votes


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

0 votes


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

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: Feb 22 '12, 12:32 p.m.

Question was seen: 4,094 times

Last updated: Feb 22 '12, 12:32 p.m.

Confirmation Cancel Confirm