aboutsummaryrefslogtreecommitdiff
path: root/jdk8-update-src-tree-persist.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2015-10-26 10:41:48 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2015-10-26 10:41:48 +0200
commitfed458e290c6e573c6d97ed3783b0fac600b8b5b (patch)
tree01d6265aa993b349d097a085a86e612f0ef8d6ff /jdk8-update-src-tree-persist.yaml
parent7eab1fb8779dfb4623c9881d4b5c54fe42706b1c (diff)
jdk8-update-src-tree-persist: add new OpenJDK CI job
Change-Id: I30b037144da7223334e6795ec62661a6ecbf5356 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'jdk8-update-src-tree-persist.yaml')
-rw-r--r--jdk8-update-src-tree-persist.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/jdk8-update-src-tree-persist.yaml b/jdk8-update-src-tree-persist.yaml
new file mode 100644
index 0000000000..1aff466481
--- /dev/null
+++ b/jdk8-update-src-tree-persist.yaml
@@ -0,0 +1,40 @@
+- job:
+ name: jdk8-update-src-tree-persist
+ project-type: freestyle
+ defaults: global
+ description: |
+ This jobs writes the current jdk8 src tree to /work/openjdk-testing/openjdk8-jtreg-nightly-tests/...<br>
+ It is used to report failure/errors against the jtreg results.
+ logrotate:
+ numToKeep: 10
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ disabled: false
+ node: aarch64-06
+ display-name: 'OpenJDK - Write jdk8 source tree'
+ wrappers:
+ - workspace-cleanup:
+ dirmatch: false
+ - timestamps
+ builders:
+ - copyartifact:
+ project: jdk8-update-src-tree
+ filter: 'out/*'
+ target: incoming
+ flatten: true
+ - shell: |
+ #!/bin/bash
+
+ set -exu
+
+ : ${YEAR:=$(date +%Y)}
+ : ${DAY_OF_YEAR:=$(date +%j)}
+
+ TOP_DIR=$HOME/openjdk8-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/jdk8.tar.gz