diff options
author | Stuart Monteith <stuart.monteith@linaro.org> | 2016-11-09 17:39:59 +0000 |
---|---|---|
committer | Stuart Monteith <stuart.monteith@linaro.org> | 2016-11-09 17:52:43 +0000 |
commit | f26496717ec8e6a74f98fd21f7da253522b2978f (patch) | |
tree | fbd24f6190e69e2f771a725ee9e0963de5cf5a90 /jdk8-update-src-tree.yaml | |
parent | f3ddf6556459aca91d66f2f18d998a5cc021f1ab (diff) |
jdk: Pass YEAR and DAY_OF_YEAR envars
There is an issue where jobs aren't able to run across different days,
and can't be restarted across different days.
This change causes jdk8-update-src-tree.yaml to generate the YEAR and
DAY_OF_YEAR envars, which it puts into a property file the job
subsequenetly uses as parameters to launch the other jobs.
Change-Id: I70ef3cf00deb0c248d99ad20ba8bb7a49b1bc032
Diffstat (limited to 'jdk8-update-src-tree.yaml')
-rw-r--r-- | jdk8-update-src-tree.yaml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jdk8-update-src-tree.yaml b/jdk8-update-src-tree.yaml index e6ba75f0..97db7bda 100644 --- a/jdk8-update-src-tree.yaml +++ b/jdk8-update-src-tree.yaml @@ -122,6 +122,9 @@ : ${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 @@ -135,4 +138,4 @@ - trigger-parameterized-builds: - project: jdk8-build-and-test condition: SUCCESS - trigger-with-no-params: true + property-file: dates.prop |