blob: 72fbb66f8d7e960d642c3b0282d4bc576bf77de4 [file] [log] [blame]
Stuart Monteith48ce3bd2018-10-11 14:27:58 +01001- job:
2 name: jdk-cache-files2
3 project-type: matrix
4 defaults: global
5 description: |
6 Download and unpack boot jdks.
7 properties:
8 - authorization:
9 anonymous:
10 - job-read
11 - job-extended-read
12 openjdk-members:
13 - job-build
14 - job-cancel
15 - build-discarder:
16 num-to-keep: 10
17 artifact-num-to-keep: 1
Riku Voipiob7c49aa2020-12-01 15:15:24 +020018 disabled: true
Kelley Spoon083a72b2022-04-26 07:05:14 -050019 node: master
Stuart Monteith48ce3bd2018-10-11 14:27:58 +010020 concurrent: false
21 display-name: 'OpenJDK - Cache files - the revenge'
22 wrappers:
23 - timestamps
24 axes:
25 - axis:
26 type: slave
27 name: node
28 values:
29 - aarch64-06
30 - j12-qrep-01
31 execution-strategy:
32 sequential: false
33 builders:
34 - copyartifact:
35 project: openjdk8-hadoop-LCA14
36 filter: 'out/openjdk8-hadoop-LCA14.tar.gz'
37 flatten: true
38 - copyartifact:
39 project: archive-specjbb2015-product-tarball
40 filter: 'out/SPECjbb2015.tgz'
41 flatten: true
Stuart Monteithe82cd912019-01-21 14:51:16 +000042 - copyartifact:
43 project: jdk-build-specjbb2015-jdk11
44 filter: 'out/SPECjbb2015-jdk11.tar.gz'
45 flatten: true
Stuart Monteith48ce3bd2018-10-11 14:27:58 +010046 - shell: |
47 #!/bin/bash
Stuart Monteith866a1222019-01-21 13:58:12 +000048 set -eu
49 PERSIST=$HOME/srv/jdk-cache
50 NEW_PERSIST=$PERSIST-new
51 OLD_PERSIST=$PERSIST-old
Stuart Monteithe82cd912019-01-21 14:51:16 +000052
53 # Creating all maintains idempotency.
Stuart Monteith0a0daf92020-04-29 22:15:16 +010054 mkdir -v -p $NEW_PERSIST $OLD_PERSIST $PERSIST
Stuart Monteith48ce3bd2018-10-11 14:27:58 +010055
56 JDK8u=jdk8u-server-release-1804
57 JDK10=jdk10-server-release-1804
Stuart Monteitha739af92018-11-14 11:18:13 +000058 JDK11=jdk11-server-release-1811
Stuart Monteith7a29db52019-03-28 10:27:11 +000059 JDK12=jdk12-release-1903
Stuart Monteith0d6230b2019-10-03 15:43:08 +010060 JDK13=OpenJDK13U-jdk_aarch64_linux_hotspot_13_33.tar.gz
Stuart Monteith2ae6c512020-04-28 14:38:24 +010061 JDK14=jdk14.tar.gz
Stuart Monteith48ce3bd2018-10-11 14:27:58 +010062
Stuart Monteith0a0daf92020-04-29 22:15:16 +010063 rm -vrf jdk*
Stuart Monteith98f65402019-01-21 14:39:20 +000064 wget -N \
Stuart Monteith866a1222019-01-21 13:58:12 +000065 http://openjdk.linaro.org/releases/${JDK8u}.tar.xz \
Stuart Monteitha739af92018-11-14 11:18:13 +000066 http://openjdk.linaro.org/releases/${JDK10}.tar.xz \
Stuart Monteithb06a30d2019-03-28 10:06:05 +000067 http://openjdk.linaro.org/releases/${JDK11}.tar.xz \
Stuart Monteith0d6230b2019-10-03 15:43:08 +010068 http://openjdk.linaro.org/releases/${JDK12}.tar.xz \
Stuart Monteith895bd042020-04-27 22:50:31 +010069 http://openjdk.linaro.org/releases/${JDK13} \
70 http://openjdk.linaro.org/releases/${JDK14}
Stuart Monteitha739af92018-11-14 11:18:13 +000071
Stuart Monteith0a0daf92020-04-29 22:15:16 +010072 tar -vJxf ${JDK8u}.tar.xz
73 tar -vJxf ${JDK10}.tar.xz
74 tar -vJxf ${JDK11}.tar.xz
75 tar -vJxf ${JDK12}.tar.xz
76 tar -vxzf ${JDK13}
77 tar -vxzf ${JDK14}
Stuart Monteith48ce3bd2018-10-11 14:27:58 +010078
Stuart Monteith0a0daf92020-04-29 22:15:16 +010079 mv -v ${JDK8u} $NEW_PERSIST/jdk8u
80 mv -v ${JDK10} $NEW_PERSIST/jdk10
81 mv -v ${JDK11} $NEW_PERSIST/jdk11
82 mv -v ${JDK12} $NEW_PERSIST/jdk12
83 mv -v jdk-13+33 $NEW_PERSIST/jdk13
84 mv -v jdk14 $NEW_PERSIST/jdk14
Stuart Monteith48ce3bd2018-10-11 14:27:58 +010085
Stuart Monteith866a1222019-01-21 13:58:12 +000086 mv openjdk8-hadoop-LCA14.tar.gz $NEW_PERSIST
Stuart Monteith866a1222019-01-21 13:58:12 +000087 mv SPECjbb2015.tgz $NEW_PERSIST
Stuart Monteithe82cd912019-01-21 14:51:16 +000088 mv SPECjbb2015-jdk11.tar.gz $NEW_PERSIST
Stuart Monteith866a1222019-01-21 13:58:12 +000089
90 # Remove the old persist, make the current one the old, and the
91 # new one the current one.
Stuart Monteith0a0daf92020-04-29 22:15:16 +010092 rm -vrf $OLD_PERSIST
93 mv -v $PERSIST $OLD_PERSIST
94 mv -v $NEW_PERSIST $PERSIST
Stuart Monteith48ce3bd2018-10-11 14:27:58 +010095 publishers:
96 - email:
97 recipients: 'stuart.monteith@linaro.org'