aboutsummaryrefslogtreecommitdiff
path: root/jdk-build-specjbb2015-jdk11.yaml
blob: 4d56cd290b0ea73ddb0ead64baf1fb1f774d4aef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
- 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
                - job-workspace
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 10
            artifact-num-to-keep: 5
    parameters:
        - string:
            name: MAVEN_URL
            default: 'http://www.us.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz'
    disabled: false
    node: aarch64-06
    display-name: 'OpenJDK 11- Build SPECjbb2015 '
    wrappers:
        - timestamps
    builders:
        - copyartifact:
            project: archive-specjbb2015-product-tarball
            filter: 'out/SPECjbb2015.tgz'
            target: artifacts
            flatten: true
        - copyartifact:
            project: jdkX-build-image
            parameters: 'BUILD_TYPE=release,JVM_VARIANT=server,label=aarch64-06'
            filter: 'out/jdkX-server-release.tar.gz'
            target: artifacts
            flatten: true
        - shell: |
            #!/bin/bash

            set -exu

            rm -f artifacts/apache-maven-*.tar.gz
            cd artifacts
            wget --progress=dot -e dotbytes=2M  ${MAVEN_URL}
            cd -

            tar -zxf artifacts/apache-maven-*.tar.gz
            cd apache-maven-*
            export M3_HOME=${PWD}
            cd -

            export PATH=${M3_HOME}/bin:$PATH

            rm -rf build out jdkX-server-release
            tar xzf artifacts/BUILD_TYPE=release,JVM_VARIANT=server,label=aarch64-06/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-1.00
            tar -czf ../../../out/SPECjbb2015-jdk11.tar.gz SPECjbb2015-1.00

            cd ../..
    publishers:
        - archive:
            artifacts: 'out/SPECjbb2015-jdk11.tar.gz'