aboutsummaryrefslogtreecommitdiff
path: root/jdkX-update-src-tree.yaml
diff options
context:
space:
mode:
authorStuart Monteith <stuart.monteith@linaro.org>2017-11-02 11:00:29 +0000
committerStuart Monteith <stuart.monteith@linaro.org>2017-11-07 11:10:36 +0000
commit3bc3d18f6e8818f2d34c79e57efda98422f5b6ca (patch)
tree0a2aee928ac02d651e252f254725dbd25d784728 /jdkX-update-src-tree.yaml
parent117c1bb250bb9eff295003ce60cfba72386c867b (diff)
downloadconfigs-3bc3d18f6e8818f2d34c79e57efda98422f5b6ca.tar.gz
jdk: Create OpenJDK JDK build projects.
Creates jdkX builds. These track the jdk/hs branch rather than jdk10/hs. These will be the development tree for every version of OpenJDK from now on. Change-Id: I6e2d93e7a830b22386e563dfcebf790e37f1d960
Diffstat (limited to 'jdkX-update-src-tree.yaml')
-rw-r--r--jdkX-update-src-tree.yaml92
1 files changed, 92 insertions, 0 deletions
diff --git a/jdkX-update-src-tree.yaml b/jdkX-update-src-tree.yaml
new file mode 100644
index 000000000..357f531a9
--- /dev/null
+++ b/jdkX-update-src-tree.yaml
@@ -0,0 +1,92 @@
+- scm:
+ name: jdkX
+ scm:
+ - hg:
+ url: http://hg.openjdk.java.net/jdk/hs
+ clean: true
+ subdir: jdkX
+- job:
+ name: jdkX-update-src-tree
+ project-type: freestyle
+ defaults: global
+ description: |
+ This job polls upstream Mercurial servers for changes and,<br>
+ if there are any, triggers "jdkX-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
+ disabled: false
+ node: aarch64-06
+ display-name: 'OpenJDK X - Update jdkX source tree'
+ scm:
+ - jdkX
+ triggers:
+ - pollscm: 'H 2 */2 * *'
+ wrappers:
+ - timestamps
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ set -eu
+
+ rm -rf out
+ mkdir out
+
+ pushd jdkX
+ #find . -name BOM -exec rm {} \;
+ #commit_id=$(hg identify | awk '{print $1}')
+ #echo "jdkX-${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/jdkX.tar.gz jdkX
+ publishers:
+ - archive:
+ artifacts: 'out/jdkX.tar.gz, out/build-date.sh, out/BOM'
+ - fingerprint:
+ files: 'out/*'
+ record-artifacts: true
+ - trigger-parameterized-builds:
+ - project: jdkX-build-and-test
+ condition: SUCCESS
+ property-file: dates.prop