aboutsummaryrefslogtreecommitdiff
path: root/jdk-build-specjbb2015-jdk11.yaml
diff options
context:
space:
mode:
authorStuart Monteith <stuart.monteith@linaro.org>2018-03-09 17:01:16 +0000
committerStuart Monteith <stuart.monteith@linaro.org>2018-03-09 17:54:38 +0000
commitaa39a0faf576c580035023adb9201823438f9fec (patch)
tree62f22d6ac457e22c69b08e54a11dffea30144a88 /jdk-build-specjbb2015-jdk11.yaml
parentbc034ef13d420b76a8cdec1ebff18c62f2da3e8b (diff)
jdk: Add jobs to rebuild SPECjbb2015 for JDK11
JDK11 removes some APIs needed by SPECjbb2015 to run. This job creates the new package. Change-Id: I4e574094902d81a30e10bcddb01f88416b05e749
Diffstat (limited to 'jdk-build-specjbb2015-jdk11.yaml')
-rw-r--r--jdk-build-specjbb2015-jdk11.yaml96
1 files changed, 96 insertions, 0 deletions
diff --git a/jdk-build-specjbb2015-jdk11.yaml b/jdk-build-specjbb2015-jdk11.yaml
new file mode 100644
index 00000000..355857b6
--- /dev/null
+++ b/jdk-build-specjbb2015-jdk11.yaml
@@ -0,0 +1,96 @@
+- job:
+ name: jdk-build-specjbb2015-jdk11
+ project-type: freestyle
+ defaults: global
+ description: |
+ * This job creates an archive of the SPECjbb2015 product for JDK11+.<br>
+ It can be copied as a *copy artifact* by other jobs.<br>
+ * <b>Note:</b> SPECjbb2015 should <b>not</b> be shared publically as there are licensing restrictions.
+ * This is build built on and for JDK 11+. JEP-320 removed some APIs that need to be replaced - this job
+ adds some dependencies to the maven job building SPECjbb2015.
+ properties:
+ - authorization:
+ linaro:
+ - job-read
+ openjdk-members:
+ - job-build
+ - job-cancel
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 10
+ artifact-num-to-keep: 5
+ disabled: false
+ node: build
+ display-name: 'OpenJDK - Archive SPECjbb2015 product'
+ wrappers:
+ - timestamps
+ builders:
+ - copyartifact:
+ project: archive-specjbb2015-product-tarball
+ filter: 'out/SPECjbb2015.tgz'
+ target: artifacts
+ - copyartifact:
+ project: jdkX-build-image
+ parameters: 'BUILD_TYPE=release,JVM_VARIANT=server,label=aarch64-06'
+ filter: 'out/jdkX-server-release.tar.gz'
+ target: artifacts
+ - shell: |
+ #!/bin/bash
+
+ set -exu
+
+ rm -rf build out jdkX-server-release
+ tar xzf artifacts/jdkX-server-release.tar.gz
+ export PATH=$PWD/jdkX-server-release/bin:$PATH
+
+ java -version
+
+ rm -rf build out
+ mkdir build out
+
+
+ tar -xzf artifacts/SPECjbb2015.tgz -C build
+
+ cd build/SPECjbb2015
+
+ unzip src.zip
+
+ sed '
+ /<\/dependencies>/ {
+ i\
+ <dependency>\
+ <groupId>org.glassfish.jaxb</groupId>\
+ <artifactId>jaxb-runtime</artifactId>\
+ <version>2.3.0</version>\
+ </dependency>\
+ <dependency>\
+ <groupId>org.glassfish.jaxb</groupId>\
+ <artifactId>jaxb-xjc</artifactId>\
+ <version>2.3.0</version>\
+ </dependency>\
+ <dependency>\
+ <groupId>org.glassfish.jaxb</groupId>\
+ <artifactId>jaxb-jxc</artifactId>\
+ <version>2.3.0</version>\
+ </dependency>\
+ <dependency>\
+ <groupId>javax.activation</groupId>\
+ <artifactId>activation</artifactId>\
+ <version>1.1.1</version>\
+ </dependency>
+ }
+ ' <pom.xml >newpom.xml
+
+ mvn install -f newpom.xml
+
+ cp -r config docs *.bat *.sh target/SPECjbb2015-1.00
+
+ cd target
+
+ chmod -R ug+rw SPECjbb2015
+ tar -czf ../../../out/specjbb2015-1.0.0.tar.gz SPECjbb2015-1.00
+
+ cd ../..
+ publishers:
+ - archive:
+ artifacts: 'out/SPECjbb2015-jdk11.tgz'