equal
deleted
inserted
replaced
2 <project name="SF-COMMON-CONFIG" xmlns:hlm="http://www.nokia.com/helium"> |
2 <project name="SF-COMMON-CONFIG" xmlns:hlm="http://www.nokia.com/helium"> |
3 |
3 |
4 <property environment="env"/> <!-- make environment variables available via env --> |
4 <property environment="env"/> <!-- make environment variables available via env --> |
5 |
5 |
6 <dirname property="sf.common.config.dir" file="${ant.file.SF-COMMON-CONFIG}"/> |
6 <dirname property="sf.common.config.dir" file="${ant.file.SF-COMMON-CONFIG}"/> |
|
7 |
|
8 <!-- If we're told that we've been invoked by Hudson, then use the executor number to determine the drive to use --> |
|
9 <if> |
|
10 <isset property="sf.hudson.executor.number"/> |
|
11 <then> |
|
12 <!-- This property could be set differently according to the varying set-ups of build parks --> |
|
13 <property name="sf.hudson.executor.drive.letter.mapping" value="zyxwvutsrqponmlk"/> |
|
14 <!-- Pick the Nth letter from the string using a regex --> |
|
15 <!-- (Would be nice if ant gave us a more obvious way to look up an item from an array...) --> |
|
16 <!-- Default string is arranged to use z: for executor 0, y: for executor 1, etc, etc. At present, SF build machines have a maximum of 4 executors --> |
|
17 <propertyregex property="sf.spec.job.drive" input="${sf.hudson.executor.drive.letter.mapping}" regexp="\w{${sf.hudson.executor.number}}(\w)" select="\1:"/> |
|
18 </then> |
|
19 </if> |
7 |
20 |
8 <!-- Import common properties --> |
21 <!-- Import common properties --> |
9 <import file="${sf.common.config.dir}/common_props.ant.xml" /> |
22 <import file="${sf.common.config.dir}/common_props.ant.xml" /> |
10 |
23 |
11 <!-- setup Helium internal properties from their equivalent in the project spec --> |
24 <!-- setup Helium internal properties from their equivalent in the project spec --> |
26 <property name="build.family" value="${sf.spec.job.name}"/> |
39 <property name="build.family" value="${sf.spec.job.name}"/> |
27 <property name="build.system" value="${sf.spec.build.system}"/> |
40 <property name="build.system" value="${sf.spec.build.system}"/> |
28 <property name="base_release.path" value="${sf.spec.baseline.location}"/> |
41 <property name="base_release.path" value="${sf.spec.baseline.location}"/> |
29 <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/> |
42 <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/> |
30 <property name="ccm.user.password" value="set_to_any_value_to_skip_scm_checks__for_helium_5"/> |
43 <property name="ccm.user.password" value="set_to_any_value_to_skip_scm_checks__for_helium_5"/> |
31 <property name="ats.drive" value="${sf.spec.ats_worker.drive}"/> |
44 <property name="ats.drive" value="${sf.spec.ats_worker.drive}"/> |
32 |
45 |
33 <if> |
46 <if> |
34 <isset property="sf.spec.sbs.numberofjobs"/> |
47 <isset property="sf.spec.sbs.numberofjobs"/> |
35 <then> |
48 <then> |
36 <property name="number.of.threads" value="${sf.spec.sbs.numberofjobs}"/> |
49 <property name="number.of.threads" value="${sf.spec.sbs.numberofjobs}"/> |