1 <?xml version="1.0" encoding="UTF-8"?> |
1 <?xml version="1.0" encoding="UTF-8"?> |
2 <project name="SF-POSTBUILD" xmlns:hlm="http://www.nokia.com/helium"> |
2 <project name="SF-POSTBUILD" xmlns:hlm="http://www.nokia.com/helium"> |
3 <target name="sf-postbuild"> |
3 <target name="sf-postbuild"> |
4 <echo>[SF-POSTBUILD]</echo> |
4 <echo>[SF-POSTBUILD]</echo> |
5 <parallel> |
5 <parallel> |
6 <!-- TAG SOURCE CODE --> |
6 <!-- TAG SOURCE CODE --> |
7 <if> |
7 <if> |
8 <istrue value="${sf.spec.tagafterbuild.enable}" /> |
8 <istrue value="${sf.spec.tagafterbuild.enable}" /> |
9 <then> |
9 <then> |
10 <echo message="Apply tag to the source code used in this build"/> |
10 <echo message="Apply tag to the source code used in this build"/> |
11 <runtarget target="sf-tag-hg-code"/> |
11 <runtarget target="sf-tag-hg-code"/> |
12 </then> |
12 </then> |
13 </if> |
13 </if> |
14 |
14 |
15 <if> |
15 <!-- Create MD5s --> |
16 <istrue value="${sf.spec.md5.enable}"/> |
16 <if> |
17 <then> |
17 <istrue value="${sf.spec.md5.enable}"/> |
18 <echo message="INFO Creating MD5s"/> |
18 <then> |
19 <runtarget target="sf-run-evalid"/> |
19 <echo message="INFO Creating MD5s"/> |
20 </then> |
20 <runtarget target="sf-run-evalid"/> |
21 </if> |
21 </then> |
22 <if> |
22 </if> |
23 <istrue value="${sf.spec.package.bin.enable}"/> |
23 |
24 <then> |
24 <!-- Package up the binaries we built --> |
25 <echo message="INFO Packaging Binaries"/> |
25 <if> |
26 <runtarget target="sf-package-binary"/> |
26 <istrue value="${sf.spec.package.bin.enable}"/> |
27 <runtarget target="sf-package-tools"/> |
27 <then> |
28 |
28 <echo message="INFO Packaging Binaries"/> |
29 <echo message="INFO Validate Zip files"/> |
29 <runtarget target="sf-package-binary"/> |
30 <runtarget target="sf-package-validate"/> |
30 <runtarget target="sf-package-tools"/> |
31 </then> |
31 |
32 </if> |
32 <echo message="INFO Validate Zip files"/> |
33 <!-- run build analysis tools --> |
33 <runtarget target="sf-package-validate"/> |
34 <runtarget target="sf-run-analysis"/> |
34 </then> |
35 |
35 </if> |
|
36 |
|
37 <!-- run build analysis tools --> |
|
38 <runtarget target="sf-run-analysis"/> |
|
39 |
|
40 <!-- Generate reports to compare this build to a previous one --> |
|
41 <runtarget target="sf-compare-to-baseline"/> |
36 </parallel> |
42 </parallel> |
37 |
43 |
|
44 <!-- Launch smoketest --> |
38 <if><istrue value="${sf.spec.test.sendpkg.enable}"/> |
45 <if><istrue value="${sf.spec.test.sendpkg.enable}"/> |
39 <then> |
46 <then> |
40 <runtarget target="sf-build-smoketestpkg"/> |
47 <runtarget target="sf-build-smoketestpkg"/> |
41 <runtarget target="sf-send-testpkg"/> |
48 <runtarget target="sf-send-testpkg"/> |
42 </then> |
49 </then> |
43 </if> |
50 </if> |
44 |
51 |
45 |
52 <!-- Launch BC check --> |
46 <runtarget target="sf-zip-logs"/> |
|
47 |
|
48 <!-- Do BC check --> |
|
49 <if><istrue value="${sf.spec.bccheck.enable}"/> |
53 <if><istrue value="${sf.spec.bccheck.enable}"/> |
50 <then> |
54 <then> |
51 <runtarget target="sf-bc-check"/> |
55 <runtarget target="sf-bc-check"/> |
52 </then> |
56 </then> |
53 </if> |
57 </if> |
54 |
58 |
55 <!-- PUBLISH LOGS/REPORTS --> |
59 <!-- Zip up all the logs --> |
|
60 <runtarget target="sf-zip-logs"/> |
|
61 |
|
62 <!-- Publish logs/reports --> |
56 <if> |
63 <if> |
57 <istrue value="${sf.spec.publish.enable}" /> |
64 <istrue value="${sf.spec.publish.enable}" /> |
58 <then> |
65 <then> |
59 <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/> |
66 <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/> |
60 <runtarget target="sf-publish"/> |
67 <runtarget target="sf-publish"/> |
464 files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]}) |
471 files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]}) |
465 </data> |
472 </data> |
466 </fmpp> |
473 </fmpp> |
467 </target> |
474 </target> |
468 |
475 |
|
476 <target name="sf-check-utilities-dir"> |
|
477 <available property="sf-utilities-available" file="${build.drive}/utilities" type="dir"/> |
|
478 </target> |
|
479 |
|
480 <target name="sf-compare-to-baseline" depends="sf-diamondize-bom,sf-check-utilities-dir" if="sf-utilities-available"> |
|
481 <property name="sf.releasenotes.wiki.txt" value="${build.log.dir}/releaseNotes.wiki.txt"/> |
|
482 <delete file="${sf.releasenotes.wiki.txt}"/> |
|
483 <!-- FCL usage --> |
|
484 <!-- TODO --> |
|
485 <!-- Mercurial comparison --> |
|
486 <echo file="${sf.releasenotes.wiki.txt}" append="true">== Mercurial Comparison == |
|
487 |
|
488 </echo> |
|
489 <if> |
|
490 <isset property="sf.previous.pdk.tag"/> |
|
491 <then> |
|
492 <echo file="${sf.releasenotes.wiki.txt}" append="true">The Mercurial changes from Nokia were delivered as a bulk update based on '''XXXXXXXXXXXXXXXXXXXXXX'''. |
|
493 |
|
494 List of the Mercurial changes (files added/removed/modified) between ${sf.previous.pdk.tag} and PDK '''XXXXX''' - [[Media:XXXX.txt]]. |
|
495 |
|
496 A short study of the results concentrating on the added and removed files has identified these significant package changes: |
|
497 |
|
498 </echo> |
|
499 <if> |
|
500 <istrue value="${sf.spec.sourcesync.archive}"/> |
|
501 <then> |
|
502 <echo file="${sf.releasenotes.wiki.txt}" append="true">'''Information cannot be derived as source was synced with archive option'''" |
|
503 |
|
504 </echo> |
|
505 </then> |
|
506 <else> |
|
507 <exec executable="perl" dir="${build.drive}/" output="${sf.releasenotes.wiki.txt}" append="true"> |
|
508 <arg value="${build.drive}/utilities/releaseAutomation/mercurialComparison.pl"/> |
|
509 <arg value="${build.log.dir}/BOM/build-info.xml"/> |
|
510 <arg value="${sf.previous.pdk.tag}"/> |
|
511 <arg value="${build.log.dir}/mercurialComparison.tsv"/> |
|
512 </exec> |
|
513 </else> |
|
514 </if> |
|
515 </then> |
|
516 <else> |
|
517 <echo file="${sf.releasenotes.wiki.txt}" append="true">'''Information cannot be provided as the tag for the previous PDK was not provided to the build'''" |
|
518 |
|
519 </echo> |
|
520 </else> |
|
521 </if> |
|
522 |
|
523 <!-- Code churn --> |
|
524 <!-- TODO? --> |
|
525 <fixcrlf file="${sf.releasenotes.wiki.txt}"/> |
|
526 </target> |
|
527 |
469 <!-- package all logs into zipfile before publish --> |
528 <!-- package all logs into zipfile before publish --> |
470 <target name="sf-zip-logs"> |
529 <target name="sf-zip-logs"> |
471 <if> |
530 <if> |
472 <istrue value="${sf.spec.logs.zip.enable}"/> |
531 <istrue value="${sf.spec.logs.zip.enable}"/> |
473 <then> |
532 <then> |