diff options
author | Stuart Monteith <stuart.monteith@linaro.org> | 2019-06-13 17:15:03 +0100 |
---|---|---|
committer | Stuart Monteith <stuart.monteith@linaro.org> | 2019-06-14 12:51:24 +0100 |
commit | 25fea7e008e1425a06c356364b59a1b6c2752d2e (patch) | |
tree | 4f0892b8e5cd995c49dc5dc3ad997d8d2a304891 /jdk13-update-src-tree-persist.yaml | |
parent | 9c6685bfb4355df68c8b2545ac2c9e4bd278bb92 (diff) |
Create JDK13 jobs
Change-Id: Ic5427c610c621fa1b6f8f3b2484dfc38aa2c8376
Diffstat (limited to 'jdk13-update-src-tree-persist.yaml')
-rw-r--r-- | jdk13-update-src-tree-persist.yaml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/jdk13-update-src-tree-persist.yaml b/jdk13-update-src-tree-persist.yaml new file mode 100644 index 0000000000..9750157ace --- /dev/null +++ b/jdk13-update-src-tree-persist.yaml @@ -0,0 +1,56 @@ +- job: + name: jdk13-update-src-tree-persist + project-type: freestyle + defaults: global + description: | + This jobs writes the current jdk13 src tree to /work/openjdk-testing/jdk13/openjdk-jtreg-nightly-tests/...<br> + It is used to report failure/errors against the jtreg results. + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + openjdk-members: + - job-build + - job-cancel + - build-discarder: + days-to-keep: 30 + num-to-keep: 10 + artifact-num-to-keep: 5 + parameters: + - string: + name: YEAR + default: 'default' + - string: + name: DAY_OF_YEAR + default: 'default' + disabled: false + node: j12-qrep-01 + display-name: 'OpenJDK 13 - Write jdk13 source tree' + wrappers: + - workspace-cleanup: + dirmatch: false + - timestamps + builders: + - copyartifact: + project: jdk13-update-src-tree + filter: 'out/*' + target: incoming + flatten: true + - shell: | + #!/bin/bash + + set -exu + + : ${YEAR:=$(date +%Y)} + : ${DAY_OF_YEAR:=$(date +%j)} + PERSIST=$HOME/srv/openjdk13 + + TOP_DIR=$PERSIST/openjdk-jtreg-nightly-tests + src_dir=$TOP_DIR/src/$YEAR/$DAY_OF_YEAR + mkdir -p $src_dir + echo "Extracting tarball to $src_dir" + tar -C $src_dir --strip-components=1 -xf $WORKSPACE/incoming/jdk13.tar.gz + + # Copy bill-of-materials to persistent area for email report. + cp incoming/BOM $TOP_DIR |