aboutsummaryrefslogtreecommitdiff
path: root/jdk12-update-src-tree-persist.yaml
diff options
context:
space:
mode:
authorStuart Monteith <stuart.monteith@linaro.org>2019-01-21 10:42:06 +0000
committerStuart Monteith <stuart.monteith@linaro.org>2019-01-21 11:01:56 +0000
commit20f0edbf87de7f990c801541492775fdde51bd97 (patch)
treee1a21894c7ddbf71e0e53a0278ade51c14aea40d /jdk12-update-src-tree-persist.yaml
parent40cdc3a4a04604d5f8548eab9c50ef838ea1addc (diff)
jdk: Add jdk12 jobs
New jdk12 jobs for jdk12 builds. Change-Id: I402e97c0318405b3309b4bccfe3e754d7e78c87f
Diffstat (limited to 'jdk12-update-src-tree-persist.yaml')
-rw-r--r--jdk12-update-src-tree-persist.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/jdk12-update-src-tree-persist.yaml b/jdk12-update-src-tree-persist.yaml
new file mode 100644
index 0000000000..e0650c6db6
--- /dev/null
+++ b/jdk12-update-src-tree-persist.yaml
@@ -0,0 +1,56 @@
+- job:
+ name: jdk12-update-src-tree-persist
+ project-type: freestyle
+ defaults: global
+ description: |
+ This jobs writes the current jdk12 src tree to /work/openjdk-testing/jdk12/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 12 - Write jdk12 source tree'
+ wrappers:
+ - workspace-cleanup:
+ dirmatch: false
+ - timestamps
+ builders:
+ - copyartifact:
+ project: jdk12-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/openjdk12
+
+ 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/jdk12.tar.gz
+
+ # Copy bill-of-materials to persistent area for email report.
+ cp incoming/BOM $TOP_DIR