Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 1 | - scm: |
| 2 | name: jdk8 |
| 3 | scm: |
| 4 | - hg: |
Stuart Monteith | a81590e | 2018-11-14 10:21:41 +0000 | [diff] [blame] | 5 | url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 6 | clean: true |
Stuart Monteith | 1689bfe | 2016-10-31 14:04:42 +0000 | [diff] [blame] | 7 | subdir: jdk8u |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 8 | - scm: |
| 9 | name: corba |
| 10 | scm: |
| 11 | - hg: |
Stuart Monteith | a81590e | 2018-11-14 10:21:41 +0000 | [diff] [blame] | 12 | url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/corba |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 13 | clean: true |
Stuart Monteith | 1689bfe | 2016-10-31 14:04:42 +0000 | [diff] [blame] | 14 | subdir: jdk8u/corba |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 15 | - scm: |
| 16 | name: hotspot |
| 17 | scm: |
| 18 | - hg: |
Stuart Monteith | a81590e | 2018-11-14 10:21:41 +0000 | [diff] [blame] | 19 | url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/hotspot |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 20 | clean: true |
Stuart Monteith | 1689bfe | 2016-10-31 14:04:42 +0000 | [diff] [blame] | 21 | subdir: jdk8u/hotspot |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 22 | - scm: |
| 23 | name: jaxp |
| 24 | scm: |
| 25 | - hg: |
Stuart Monteith | a81590e | 2018-11-14 10:21:41 +0000 | [diff] [blame] | 26 | url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/jaxp |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 27 | clean: true |
Stuart Monteith | 1689bfe | 2016-10-31 14:04:42 +0000 | [diff] [blame] | 28 | subdir: jdk8u/jaxp |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 29 | - scm: |
| 30 | name: jaxws |
| 31 | scm: |
| 32 | - hg: |
Stuart Monteith | a81590e | 2018-11-14 10:21:41 +0000 | [diff] [blame] | 33 | url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/jaxws |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 34 | clean: true |
Stuart Monteith | 1689bfe | 2016-10-31 14:04:42 +0000 | [diff] [blame] | 35 | subdir: jdk8u/jaxws |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 36 | - scm: |
| 37 | name: jdk |
| 38 | scm: |
| 39 | - hg: |
Stuart Monteith | a81590e | 2018-11-14 10:21:41 +0000 | [diff] [blame] | 40 | url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/jdk |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 41 | clean: true |
Stuart Monteith | 1689bfe | 2016-10-31 14:04:42 +0000 | [diff] [blame] | 42 | subdir: jdk8u/jdk |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 43 | - scm: |
| 44 | name: langtools |
| 45 | scm: |
| 46 | - hg: |
Stuart Monteith | a81590e | 2018-11-14 10:21:41 +0000 | [diff] [blame] | 47 | url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/langtools |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 48 | clean: true |
Stuart Monteith | 1689bfe | 2016-10-31 14:04:42 +0000 | [diff] [blame] | 49 | subdir: jdk8u/langtools |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 50 | - scm: |
| 51 | name: nashorn |
| 52 | scm: |
| 53 | - hg: |
Stuart Monteith | a81590e | 2018-11-14 10:21:41 +0000 | [diff] [blame] | 54 | url: https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/nashorn |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 55 | clean: true |
Stuart Monteith | 1689bfe | 2016-10-31 14:04:42 +0000 | [diff] [blame] | 56 | subdir: jdk8u/nashorn |
Fathi Boudra | 73b0f03 | 2015-10-26 10:42:06 +0200 | [diff] [blame] | 57 | - job: |
| 58 | name: jdk8-update-src-tree |
| 59 | project-type: freestyle |
| 60 | defaults: global |
| 61 | description: | |
| 62 | This job polls upstream Mercurial servers for changes and,<br> |
| 63 | if there are any, triggers "jdk8-build-and-test".<br> |
| 64 | Note: this job archives the src which is later required by the jtreg<br> |
| 65 | report and publish job. The build-date.sh artefact contains shell<br> |
| 66 | variables for the day and day-of-year the source was archived. |
Fathi Boudra | 73b0f03 | 2015-10-26 10:42:06 +0200 | [diff] [blame] | 67 | properties: |
| 68 | - authorization: |
| 69 | anonymous: |
| 70 | - job-read |
| 71 | - job-extended-read |
Stuart Monteith | 5d25904 | 2016-08-10 15:58:51 +0100 | [diff] [blame] | 72 | openjdk-members: |
| 73 | - job-build |
| 74 | - job-cancel |
Stuart Monteith | 91aa5e0 | 2016-08-10 13:28:54 +0100 | [diff] [blame] | 75 | - build-discarder: |
| 76 | days-to-keep: 30 |
| 77 | num-to-keep: 10 |
| 78 | artifact-num-to-keep: 5 |
Stuart Monteith | 0a93f1c | 2019-01-21 11:20:19 +0000 | [diff] [blame] | 79 | - build-blocker: |
| 80 | use-build-blocker: true |
| 81 | blocking-jobs: |
Stuart Monteith | 53ae798 | 2020-01-13 14:39:09 +0000 | [diff] [blame] | 82 | - "jdk14-.*" |
Stuart Monteith | 2112150 | 2019-06-17 13:22:48 +0100 | [diff] [blame] | 83 | - "jdk13-.*" |
Stuart Monteith | 5aad923 | 2019-01-21 11:26:36 +0000 | [diff] [blame] | 84 | - "jdk11-.*" |
| 85 | - "jdkX-.*" |
Stuart Monteith | 0a93f1c | 2019-01-21 11:20:19 +0000 | [diff] [blame] | 86 | block-level: 'GLOBAL' |
Riku Voipio | b7c49aa | 2020-12-01 15:15:24 +0200 | [diff] [blame] | 87 | disabled: true |
Stuart Monteith | 1f5aa99 | 2018-10-03 17:05:22 +0100 | [diff] [blame] | 88 | node: j12-qrep-01 |
Stuart Monteith | c7f1428 | 2016-06-20 13:41:24 +0100 | [diff] [blame] | 89 | display-name: 'OpenJDK 8u - Update jdk8u source tree' |
Fathi Boudra | 73b0f03 | 2015-10-26 10:42:06 +0200 | [diff] [blame] | 90 | scm: |
Fathi Boudra | aadd3b1 | 2016-02-26 14:55:17 +0200 | [diff] [blame] | 91 | - jdk8 |
| 92 | - corba |
| 93 | - hotspot |
| 94 | - jaxp |
| 95 | - jaxws |
| 96 | - jdk |
| 97 | - langtools |
| 98 | - nashorn |
Fathi Boudra | 73b0f03 | 2015-10-26 10:42:06 +0200 | [diff] [blame] | 99 | triggers: |
Stuart Monteith | e184576 | 2018-06-27 16:48:53 +0100 | [diff] [blame] | 100 | - pollscm: |
Stuart Monteith | 0a93f1c | 2019-01-21 11:20:19 +0000 | [diff] [blame] | 101 | cron: '0 7 * * 2,4,6' |
Fathi Boudra | 73b0f03 | 2015-10-26 10:42:06 +0200 | [diff] [blame] | 102 | wrappers: |
| 103 | - timestamps |
| 104 | builders: |
| 105 | - shell: | |
| 106 | #!/bin/bash |
| 107 | |
| 108 | set -eu |
| 109 | |
| 110 | rm -rf out |
| 111 | mkdir out |
| 112 | |
Stuart Monteith | aff8cea | 2016-12-14 11:10:22 +0000 | [diff] [blame] | 113 | pushd jdk8u |
Stuart Monteith | a809f4c | 2016-12-08 17:35:22 +0000 | [diff] [blame] | 114 | #find . -name BOM -exec rm {} \; |
| 115 | #commit_id=$(hg identify | awk '{print $1}') |
| 116 | #echo "jdk9-${commit_id}" | tee -a BOM |
Fathi Boudra | 73b0f03 | 2015-10-26 10:42:06 +0200 | [diff] [blame] | 117 | |
Stuart Monteith | a809f4c | 2016-12-08 17:35:22 +0000 | [diff] [blame] | 118 | #for i in corba jaxp jaxws langtools jdk hotspot nashorn; do |
| 119 | # pushd $i |
| 120 | # commit_id=$(hg identify | awk '{print $1}') |
| 121 | # dir=$(basename $PWD) |
| 122 | # echo "${dir}-${commit_id}" | tee -a ../BOM |
| 123 | # popd |
| 124 | #done |
| 125 | |
| 126 | ## Pull out subdirectory HG versions |
| 127 | SUBREPOS=". corba jaxp jaxws langtools jdk hotspot nashorn" |
| 128 | |
Stuart Monteith | a774911 | 2016-12-12 11:29:12 +0000 | [diff] [blame] | 129 | echo BOM for $(hg paths default) > BOM |
| 130 | echo -e Subdir\\tHash\\t\\tTag\\tTag hash >> BOM |
Stuart Monteith | a809f4c | 2016-12-08 17:35:22 +0000 | [diff] [blame] | 131 | for x in $SUBREPOS; do |
Stuart Monteith | 1948f49 | 2017-02-08 10:39:18 +0000 | [diff] [blame] | 132 | echo -e $x\\t$(cd $x; hg head --template '{node|short}\t' tip; hg tags --template="{tag}\t{node|short}\n" | grep -ve '^tip' | head -n1) >>BOM |
Fathi Boudra | 73b0f03 | 2015-10-26 10:42:06 +0200 | [diff] [blame] | 133 | done |
| 134 | |
Stuart Monteith | d4a3415 | 2016-12-12 09:57:31 +0000 | [diff] [blame] | 135 | cp BOM $WORKSPACE/out |
| 136 | |
Fathi Boudra | 73b0f03 | 2015-10-26 10:42:06 +0200 | [diff] [blame] | 137 | popd |
| 138 | |
| 139 | : ${YEAR:=$(date +%Y)} |
| 140 | : ${DAY_OF_YEAR:=$(date +%j)} |
| 141 | |
| 142 | : ${YEAR_YESTERDAY:=$YEAR} |
| 143 | : ${DAY_OF_YEAR_YESTERDAY:=$((10#$DAY_OF_YEAR - 1))} |
| 144 | |
Stuart Monteith | f264967 | 2016-11-09 17:39:59 +0000 | [diff] [blame] | 145 | echo "YEAR=${YEAR}" >dates.prop |
| 146 | echo "DAY_OF_YEAR=${DAY_OF_YEAR}" >>dates.prop |
| 147 | |
Fathi Boudra | 73b0f03 | 2015-10-26 10:42:06 +0200 | [diff] [blame] | 148 | echo "export YEAR=${YEAR}" > out/build-date.sh |
| 149 | echo "export DAY_OF_YEAR=${DAY_OF_YEAR}" >> out/build-date.sh |
| 150 | |
Stuart Monteith | 1689bfe | 2016-10-31 14:04:42 +0000 | [diff] [blame] | 151 | tar --exclude=.hg -acf out/jdk8u.tar.gz jdk8u |
Fathi Boudra | 73b0f03 | 2015-10-26 10:42:06 +0200 | [diff] [blame] | 152 | publishers: |
| 153 | - archive: |
Stuart Monteith | aff8cea | 2016-12-14 11:10:22 +0000 | [diff] [blame] | 154 | artifacts: 'out/jdk8u.tar.gz, out/build-date.sh, out/BOM' |
Fathi Boudra | 73b0f03 | 2015-10-26 10:42:06 +0200 | [diff] [blame] | 155 | - fingerprint: |
| 156 | files: 'out/*' |
| 157 | record-artifacts: true |
| 158 | - trigger-parameterized-builds: |
| 159 | - project: jdk8-build-and-test |
| 160 | condition: SUCCESS |
Stuart Monteith | f264967 | 2016-11-09 17:39:59 +0000 | [diff] [blame] | 161 | property-file: dates.prop |