diff options
author | Daniel Díaz <daniel.diaz@linaro.org> | 2015-10-27 16:47:30 -0600 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2015-11-06 10:41:00 +0000 |
commit | 1499af348cf29607bb85c68b826a2ae51354a3d4 (patch) | |
tree | c90e7c356f12bbb27f8490289bd7aa721ad2eb1a /jdk9-build-image.yaml | |
parent | 7c20fecb9bb3bd3892b35ef67d62f2a4867827bd (diff) |
jdk9-build-image: Add new OpenJDK9 CI job.
Change-Id: I533f8241813675f0e7622c1defd3d995816bf023
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Diffstat (limited to 'jdk9-build-image.yaml')
-rw-r--r-- | jdk9-build-image.yaml | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/jdk9-build-image.yaml b/jdk9-build-image.yaml new file mode 100644 index 0000000000..6cda311ed1 --- /dev/null +++ b/jdk9-build-image.yaml @@ -0,0 +1,112 @@ +- job: + name: jdk9-build-image + project-type: matrix + defaults: global + description: | + * Configures and builds jdk9 (ie, bin/java, bin/javac, et al) for various configurations.<br> + * The source tarball is copied from the jdk9-update-src-tree job.<br> + * <b>Note:</b> we are no longer building -fastdebug variants as there is not enough time to test the images. + logrotate: + numToKeep: 10 + artifactNumToKeep: 1 + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + disabled: false + node: aarch64-06 + display-name: 'OpenJDK9 - Configure and build OpenJDK 9' + axes: + - axis: + type: user-defined + name: JVM_VARIANT + values: + - server + - client + - axis: + type: user-defined + name: BUILD_TYPE + values: + - release + execution-strategy: + combination-filter: | + JVM_VARIANT=="server" + sequential: true + wrappers: + - workspace-cleanup: + dirmatch: false + - timestamps + - matrix-tie-parent: + node: aarch64-06 + builders: + - copyartifact: + project: jdk9-update-src-tree + filter: 'out/jdk9.tar.gz' + target: incoming + flatten: true + - copyartifact: + project: archive-primordial-jdk8 + filter: 'out/primordial-jdk8.tar.gz' + target: incoming + flatten: true + - shell: | + #!/bin/bash + + set -exu + + #export CCACHE_DIR=~/.ccache-${JVM_VARIANT}-${BUILD_TYPE} + #ccache -M 1G + #ccache -s + + ccache_build_opts=--disable-ccache + + # Extract sources from upstream job + rm -rf jdk9 + tar xf incoming/jdk9.tar.gz + + shopt -s nullglob + + for i in ${WORKSPACE}/patches/*.patch; do + echo "Applying patch: $i" + (cd jdk9; patch -p1 < $i) + done + + # Extract boot jdk + rm -rf primordial-jdk8 + tar xf incoming/primordial-jdk8.tar.gz + + # Configure and build. + rm -rf build* + mkdir -p build-stage1 build-stage2 + + two_stage_build=0 + + which java + java -version + + if [ $two_stage_build = 1 ]; then + pushd build-stage1 + sh ../jdk9/configure --with-jvm-variants=${JVM_VARIANT} --with-debug-level=${BUILD_TYPE} --with-boot-jdk=${WORKSPACE}/primordial-jdk8 ${ccache_build_opts} + make images + popd + + pushd build-stage2 + sh ../jdk9/configure --with-jvm-variants=${JVM_VARIANT} --with-debug-level=${BUILD_TYPE} --with-boot-jdk=${WORKSPACE}/build-stage1/images/j2sdk-image ${ccache_build_opts} + make images + popd + else + pushd build-stage2 + sh ../jdk9/configure --with-jvm-variants=${JVM_VARIANT} --with-debug-level=${BUILD_TYPE} ${ccache_build_opts} + make images + popd + fi + + # Archive the result + rm -rf out + mkdir out + artifact_name=jdk9-${JVM_VARIANT}-${BUILD_TYPE} + tar -C build-stage2/images/jdk --exclude=\*.diz --transform="s!^./!$artifact_name/!" -acf out/${artifact_name}.tar.gz . + publishers: + - archive: + artifacts: 'out/*.tar.gz' |