equal
deleted
inserted
replaced
5 <#assign count = 0 /> |
5 <#assign count = 0 /> |
6 |
6 |
7 <#list data as pkg_detail> |
7 <#list data as pkg_detail> |
8 <target name="sf-tag-hg-code-${count}"> |
8 <target name="sf-tag-hg-code-${count}"> |
9 <sequential> |
9 <sequential> |
10 <hlm:scm verbose="true" scmUrl="scm:hg:${pkg_detail.source}"> |
10 |
11 <hlm:tag basedir="${ant['sf.spec.job.drive']}${pkg_detail.dst}" name="${ant['sf.tagafterbuild.tag']}" level="normal"/> |
11 <trycatch> <!-- build must not fail if this command gives an error --> |
12 </hlm:scm> |
12 <try> |
|
13 <hlm:scm verbose="true" scmUrl="scm:hg:${pkg_detail.source}"> |
|
14 <hlm:tag basedir="${ant['sf.spec.job.drive']}${pkg_detail.dst}" name="${ant['sf.tagafterbuild.tag']}" level="normal"/> |
|
15 </hlm:scm> |
|
16 </try> |
|
17 <catch> |
|
18 <echo message="WARNING: failed to tag code with label '${ant['sf.tagafterbuild.tag']}' (does the tag already exist?)"/> |
|
19 </catch> |
|
20 </trycatch> |
|
21 |
13 </sequential> |
22 </sequential> |
14 </target> |
23 </target> |
15 |
24 |
16 <#if (count == 0) > |
25 <#if (count == 0) > |
17 <#assign target_depends = "${target_depends}" + "sf-tag-hg-code-${count}" /> |
26 <#assign target_depends = "${target_depends}" + "sf-tag-hg-code-${count}" /> |
24 </#list> |
33 </#list> |
25 |
34 |
26 <target name="all" depends="${target_depends}"/> |
35 <target name="all" depends="${target_depends}"/> |
27 |
36 |
28 </project> |
37 </project> |
|
38 |
|
39 |
|
40 |
|
41 <trycatch> |
|
42 <try> |
|
43 |
|
44 <scm ....> |
|
45 <tag ....> |
|
46 </scm> |
|
47 </try> |
|
48 <catch> |
|
49 <echo>Fail to tag: <catch>.</echo> |
|
50 </catch> |
|
51 </trycatch> |