aboutsummaryrefslogtreecommitdiff
path: root/jdk14-update-src-tree.yaml
diff options
context:
space:
mode:
authorStuart Monteith <stuart.monteith@linaro.org>2020-01-13 14:39:09 +0000
committerStuart Monteith <stuart.monteith@linaro.org>2020-01-13 14:40:17 +0000
commit53ae798a662dece9022fe74d1fa300df0951ff9e (patch)
tree6cfb2bc56dbea62340a9466ae6e3bc79c07577be /jdk14-update-src-tree.yaml
parent53fc061fe066fcd3d022f49d7947164d3d034033 (diff)
jdk: Add jdk14 jobs
Creates all the new jobs required for jdk14. Disables jdk12, which was obsoleted by jdk13. Change-Id: Idd622d78764932837a493f7e65f93e0969866a5b
Diffstat (limited to 'jdk14-update-src-tree.yaml')
-rw-r--r--jdk14-update-src-tree.yaml101
1 files changed, 101 insertions, 0 deletions
diff --git a/jdk14-update-src-tree.yaml b/jdk14-update-src-tree.yaml
new file mode 100644
index 00000000..94b415e8
--- /dev/null
+++ b/jdk14-update-src-tree.yaml
@@ -0,0 +1,101 @@
+- scm:
+ name: jdk14
+ scm:
+ - hg:
+ url: https://hg.openjdk.java.net/jdk-updates/jdk14u
+ clean: true
+ subdir: jdk14
+- job:
+ name: jdk14-update-src-tree
+ project-type: freestyle
+ defaults: global
+ description: |
+ This job polls upstream Mercurial servers for changes and,<br>
+ if there are any, triggers "jdk14-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.
+ 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
+ - build-blocker:
+ use-build-blocker: true
+ blocking-jobs:
+ - "jdk13-.*"
+ - "jdk11-.*"
+ - "jdk8-.*"
+ - "jdkX-.*"
+ block-level: 'GLOBAL'
+ disabled: false
+ node: j12-qrep-01
+ display-name: 'OpenJDK 14 - Update jdk14 source tree'
+ scm:
+ - jdk14
+ triggers:
+ - pollscm:
+ cron: '0 7 * * 2,4,6'
+ wrappers:
+ - timestamps
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ set -eu
+
+ rm -rf out
+ mkdir out
+
+ pushd jdk14
+ #find . -name BOM -exec rm {} \;
+ #commit_id=$(hg identify | awk '{print $1}')
+ #echo "jdk14-${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
+
+ ## Pull out subdirectory HG versions
+ echo BOM for $(hg paths default) > BOM
+ echo -e Subdir\\tHash\\t\\tTag\\tTag hash >> BOM
+ echo -e .\\t$(hg head --template '{node|short}\t' tip; hg tags --template="{tag}\t{node|short}\n" | grep -ve '^tip' | head -n1) >>BOM
+
+ cp BOM $WORKSPACE/out
+
+ popd
+
+ : ${YEAR:=$(date +%Y)}
+ : ${DAY_OF_YEAR:=$(date +%j)}
+
+ : ${YEAR_YESTERDAY:=$YEAR}
+ : ${DAY_OF_YEAR_YESTERDAY:=$((10#$DAY_OF_YEAR - 1))}
+
+ echo "YEAR=${YEAR}" >dates.prop
+ echo "DAY_OF_YEAR=${DAY_OF_YEAR}" >>dates.prop
+
+ 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/jdk14.tar.gz jdk14
+ publishers:
+ - archive:
+ artifacts: 'out/jdk14.tar.gz, out/build-date.sh, out/BOM'
+ - fingerprint:
+ files: 'out/*'
+ record-artifacts: true
+ - trigger-parameterized-builds:
+ - project: jdk14-build-and-test
+ condition: SUCCESS
+ property-file: dates.prop