blob: dc156bb33c06bf4254e650efed9f3f0178cbca89 [file] [log] [blame]
Fathi Boudraaadd3b12016-02-26 14:55:17 +02001- scm:
2 name: jdk8
3 scm:
4 - hg:
Stuart Monteitha81590e2018-11-14 10:21:41 +00005 url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah
Fathi Boudraaadd3b12016-02-26 14:55:17 +02006 clean: true
Stuart Monteith1689bfe2016-10-31 14:04:42 +00007 subdir: jdk8u
Fathi Boudraaadd3b12016-02-26 14:55:17 +02008- scm:
9 name: corba
10 scm:
11 - hg:
Stuart Monteitha81590e2018-11-14 10:21:41 +000012 url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/corba
Fathi Boudraaadd3b12016-02-26 14:55:17 +020013 clean: true
Stuart Monteith1689bfe2016-10-31 14:04:42 +000014 subdir: jdk8u/corba
Fathi Boudraaadd3b12016-02-26 14:55:17 +020015- scm:
16 name: hotspot
17 scm:
18 - hg:
Stuart Monteitha81590e2018-11-14 10:21:41 +000019 url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/hotspot
Fathi Boudraaadd3b12016-02-26 14:55:17 +020020 clean: true
Stuart Monteith1689bfe2016-10-31 14:04:42 +000021 subdir: jdk8u/hotspot
Fathi Boudraaadd3b12016-02-26 14:55:17 +020022- scm:
23 name: jaxp
24 scm:
25 - hg:
Stuart Monteitha81590e2018-11-14 10:21:41 +000026 url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/jaxp
Fathi Boudraaadd3b12016-02-26 14:55:17 +020027 clean: true
Stuart Monteith1689bfe2016-10-31 14:04:42 +000028 subdir: jdk8u/jaxp
Fathi Boudraaadd3b12016-02-26 14:55:17 +020029- scm:
30 name: jaxws
31 scm:
32 - hg:
Stuart Monteitha81590e2018-11-14 10:21:41 +000033 url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/jaxws
Fathi Boudraaadd3b12016-02-26 14:55:17 +020034 clean: true
Stuart Monteith1689bfe2016-10-31 14:04:42 +000035 subdir: jdk8u/jaxws
Fathi Boudraaadd3b12016-02-26 14:55:17 +020036- scm:
37 name: jdk
38 scm:
39 - hg:
Stuart Monteitha81590e2018-11-14 10:21:41 +000040 url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/jdk
Fathi Boudraaadd3b12016-02-26 14:55:17 +020041 clean: true
Stuart Monteith1689bfe2016-10-31 14:04:42 +000042 subdir: jdk8u/jdk
Fathi Boudraaadd3b12016-02-26 14:55:17 +020043- scm:
44 name: langtools
45 scm:
46 - hg:
Stuart Monteitha81590e2018-11-14 10:21:41 +000047 url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/langtools
Fathi Boudraaadd3b12016-02-26 14:55:17 +020048 clean: true
Stuart Monteith1689bfe2016-10-31 14:04:42 +000049 subdir: jdk8u/langtools
Fathi Boudraaadd3b12016-02-26 14:55:17 +020050- scm:
51 name: nashorn
52 scm:
53 - hg:
Stuart Monteitha81590e2018-11-14 10:21:41 +000054 url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/nashorn
Fathi Boudraaadd3b12016-02-26 14:55:17 +020055 clean: true
Stuart Monteith1689bfe2016-10-31 14:04:42 +000056 subdir: jdk8u/nashorn
Fathi Boudra73b0f032015-10-26 10:42:06 +020057- job:
58 name: jdk8-update-src-tree
59 project-type: freestyle
60 defaults: global
61 description: |
62 This job polls upstream Mercurial servers for changes and,<br>
63 if there are any, triggers "jdk8-build-and-test".<br>
64 Note: this job archives the src which is later required by the jtreg<br>
65 report and publish job. The build-date.sh artefact contains shell<br>
66 variables for the day and day-of-year the source was archived.
Fathi Boudra73b0f032015-10-26 10:42:06 +020067 properties:
68 - authorization:
69 anonymous:
70 - job-read
71 - job-extended-read
Stuart Monteith5d259042016-08-10 15:58:51 +010072 openjdk-members:
73 - job-build
74 - job-cancel
Stuart Monteith91aa5e02016-08-10 13:28:54 +010075 - build-discarder:
76 days-to-keep: 30
77 num-to-keep: 10
78 artifact-num-to-keep: 5
Stuart Monteith0a93f1c2019-01-21 11:20:19 +000079 - build-blocker:
80 use-build-blocker: true
81 blocking-jobs:
Stuart Monteith53ae7982020-01-13 14:39:09 +000082 - "jdk14-.*"
Stuart Monteith21121502019-06-17 13:22:48 +010083 - "jdk13-.*"
Stuart Monteith5aad9232019-01-21 11:26:36 +000084 - "jdk11-.*"
85 - "jdkX-.*"
Stuart Monteith0a93f1c2019-01-21 11:20:19 +000086 block-level: 'GLOBAL'
Riku Voipiob7c49aa2020-12-01 15:15:24 +020087 disabled: true
Stuart Monteith1f5aa992018-10-03 17:05:22 +010088 node: j12-qrep-01
Stuart Monteithc7f14282016-06-20 13:41:24 +010089 display-name: 'OpenJDK 8u - Update jdk8u source tree'
Fathi Boudra73b0f032015-10-26 10:42:06 +020090 scm:
Fathi Boudraaadd3b12016-02-26 14:55:17 +020091 - jdk8
92 - corba
93 - hotspot
94 - jaxp
95 - jaxws
96 - jdk
97 - langtools
98 - nashorn
Fathi Boudra73b0f032015-10-26 10:42:06 +020099 triggers:
Stuart Monteithe1845762018-06-27 16:48:53 +0100100 - pollscm:
Stuart Monteith0a93f1c2019-01-21 11:20:19 +0000101 cron: '0 7 * * 2,4,6'
Fathi Boudra73b0f032015-10-26 10:42:06 +0200102 wrappers:
103 - timestamps
104 builders:
105 - shell: |
106 #!/bin/bash
107
108 set -eu
109
110 rm -rf out
111 mkdir out
112
Stuart Monteithaff8cea2016-12-14 11:10:22 +0000113 pushd jdk8u
Stuart Monteitha809f4c2016-12-08 17:35:22 +0000114 #find . -name BOM -exec rm {} \;
115 #commit_id=$(hg identify | awk '{print $1}')
116 #echo "jdk9-${commit_id}" | tee -a BOM
Fathi Boudra73b0f032015-10-26 10:42:06 +0200117
Stuart Monteitha809f4c2016-12-08 17:35:22 +0000118 #for i in corba jaxp jaxws langtools jdk hotspot nashorn; do
119 # pushd $i
120 # commit_id=$(hg identify | awk '{print $1}')
121 # dir=$(basename $PWD)
122 # echo "${dir}-${commit_id}" | tee -a ../BOM
123 # popd
124 #done
125
126 ## Pull out subdirectory HG versions
127 SUBREPOS=". corba jaxp jaxws langtools jdk hotspot nashorn"
128
Stuart Monteitha7749112016-12-12 11:29:12 +0000129 echo BOM for $(hg paths default) > BOM
130 echo -e Subdir\\tHash\\t\\tTag\\tTag hash >> BOM
Stuart Monteitha809f4c2016-12-08 17:35:22 +0000131 for x in $SUBREPOS; do
Stuart Monteith1948f492017-02-08 10:39:18 +0000132 echo -e $x\\t$(cd $x; hg head --template '{node|short}\t' tip; hg tags --template="{tag}\t{node|short}\n" | grep -ve '^tip' | head -n1) >>BOM
Fathi Boudra73b0f032015-10-26 10:42:06 +0200133 done
134
Stuart Monteithd4a34152016-12-12 09:57:31 +0000135 cp BOM $WORKSPACE/out
136
Fathi Boudra73b0f032015-10-26 10:42:06 +0200137 popd
138
139 : ${YEAR:=$(date +%Y)}
140 : ${DAY_OF_YEAR:=$(date +%j)}
141
142 : ${YEAR_YESTERDAY:=$YEAR}
143 : ${DAY_OF_YEAR_YESTERDAY:=$((10#$DAY_OF_YEAR - 1))}
144
Stuart Monteithf2649672016-11-09 17:39:59 +0000145 echo "YEAR=${YEAR}" >dates.prop
146 echo "DAY_OF_YEAR=${DAY_OF_YEAR}" >>dates.prop
147
Fathi Boudra73b0f032015-10-26 10:42:06 +0200148 echo "export YEAR=${YEAR}" > out/build-date.sh
149 echo "export DAY_OF_YEAR=${DAY_OF_YEAR}" >> out/build-date.sh
150
Stuart Monteith1689bfe2016-10-31 14:04:42 +0000151 tar --exclude=.hg -acf out/jdk8u.tar.gz jdk8u
Fathi Boudra73b0f032015-10-26 10:42:06 +0200152 publishers:
153 - archive:
Stuart Monteithaff8cea2016-12-14 11:10:22 +0000154 artifacts: 'out/jdk8u.tar.gz, out/build-date.sh, out/BOM'
Fathi Boudra73b0f032015-10-26 10:42:06 +0200155 - fingerprint:
156 files: 'out/*'
157 record-artifacts: true
158 - trigger-parameterized-builds:
159 - project: jdk8-build-and-test
160 condition: SUCCESS
Stuart Monteithf2649672016-11-09 17:39:59 +0000161 property-file: dates.prop