aboutsummaryrefslogtreecommitdiff
path: root/jdk8-update-src-tree.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2015-10-26 10:42:06 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2015-10-26 10:42:06 +0200
commit73b0f032410843cd2ab8c4669519495a3b0990a6 (patch)
tree127b796c71d48f8a250adc0a0d1e533953e8f440 /jdk8-update-src-tree.yaml
parentfed458e290c6e573c6d97ed3783b0fac600b8b5b (diff)
jdk8-update-src-tree: add new OpenJDK CI job
Change-Id: I4d05538b5fc115548b279c89f32b6923adb2b00c Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'jdk8-update-src-tree.yaml')
-rw-r--r--jdk8-update-src-tree.yaml103
1 files changed, 103 insertions, 0 deletions
diff --git a/jdk8-update-src-tree.yaml b/jdk8-update-src-tree.yaml
new file mode 100644
index 00000000..e27f4804
--- /dev/null
+++ b/jdk8-update-src-tree.yaml
@@ -0,0 +1,103 @@
+- job:
+ name: jdk8-update-src-tree
+ project-type: freestyle
+ defaults: global
+ description: |
+ This job polls upstream Mercurial servers for changes and,<br>
+ if there are any, triggers "jdk8-build-and-test".<br>
+ Note: this job archives the src which is later required by the jtreg<br>
+ report and publish job. The build-date.sh artefact contains shell<br>
+ variables for the day and day-of-year the source was archived.
+ logrotate:
+ numToKeep: 10
+ artifactNumToKeep: 1
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ disabled: true
+ node: aarch64-06
+ display-name: 'OpenJDK - Update jdk8 source tree'
+ scm:
+ - hg:
+ url: http://hg.openjdk.java.net/aarch64-port/jdk8
+ clean: true
+ subdir: jdk8
+ - hg:
+ url: http://hg.openjdk.java.net/aarch64-port/jdk8/corba
+ clean: true
+ subdir: jdk8/corba
+ - hg:
+ url: http://hg.openjdk.java.net/aarch64-port/jdk8/hotspot
+ clean: true
+ subdir: jdk8/hotspot
+ - hg:
+ url: http://hg.openjdk.java.net/aarch64-port/jdk8/jaxp
+ clean: true
+ subdir: jdk8/jaxp
+ - hg:
+ url: http://hg.openjdk.java.net/aarch64-port/jdk8/jaxws
+ clean: true
+ subdir: jdk8/jaxws
+ - hg:
+ url: http://hg.openjdk.java.net/aarch64-port/jdk8/jdk
+ clean: true
+ subdir: jdk8/jdk
+ - hg:
+ url: http://hg.openjdk.java.net/aarch64-port/jdk8/langtools
+ clean: true
+ subdir: jdk8/langtools
+ - hg:
+ url: http://hg.openjdk.java.net/aarch64-port/jdk8/nashorn
+ clean: true
+ subdir: jdk8/nashorn
+ triggers:
+# FIXME - Spread load evenly by using ‘H 00 * * *’
+ - pollscm: '03 00 * * *'
+ wrappers:
+ - timestamps
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ set -eu
+
+ rm -rf out
+ mkdir out
+
+ pushd jdk8
+ find . -name BOM -exec rm {} \;
+ commit_id=$(hg identify | awk '{print $1}')
+ echo "jdk8-${commit_id}" | tee -a BOM
+
+ for i in corba jaxp jaxws langtools jdk hotspot nashorn; do
+ pushd $i
+ commit_id=$(hg identify | awk '{print $1}')
+ dir=$(basename $PWD)
+ echo "${dir}-${commit_id}" | tee -a ../BOM
+ popd
+ done
+
+ popd
+
+ : ${YEAR:=$(date +%Y)}
+ : ${DAY_OF_YEAR:=$(date +%j)}
+
+ : ${YEAR_YESTERDAY:=$YEAR}
+ : ${DAY_OF_YEAR_YESTERDAY:=$((10#$DAY_OF_YEAR - 1))}
+
+ echo "export YEAR=${YEAR}" > out/build-date.sh
+ echo "export DAY_OF_YEAR=${DAY_OF_YEAR}" >> out/build-date.sh
+
+ tar --exclude=.hg -acf out/jdk8.tar.gz jdk8
+ publishers:
+ - archive:
+ artifacts: 'out/jdk8.tar.gz, out/build-date.sh'
+ - fingerprint:
+ files: 'out/*'
+ record-artifacts: true
+ - trigger-parameterized-builds:
+ - project: jdk8-build-and-test
+ condition: SUCCESS
+ trigger-with-no-params: true