aboutsummaryrefslogtreecommitdiff
path: root/trigger-openembedded-lkft-linux-stable-rc-4.9.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2017-07-04 14:48:36 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2017-07-07 07:20:50 +0000
commiteeac6980d65a83035eae766e20145cc8a320e461 (patch)
tree19ab334bd43ea9077b7af4126c0dbc3684400b10 /trigger-openembedded-lkft-linux-stable-rc-4.9.yaml
parent76ddd68f7ffd283368848be3d4db82963c29ac3a (diff)
openembedded-lkft: promote KERNEL_DESCRIBE and SRCREV_kernel to job parameters
The build triggers have already all the git describe and commit for each kernel. Instead of computing them in the build job, pass them from the trigger job to the downstream job. As a result, KERNEL_DESCRIBE and SRCREV_kernel are now job parameters. As a side effect, it allows to simplify build-name-setter and directly use SRCREV_kernel variable. Change-Id: I01c823259fa98484cd27ef163a66327a694262a1 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'trigger-openembedded-lkft-linux-stable-rc-4.9.yaml')
-rw-r--r--trigger-openembedded-lkft-linux-stable-rc-4.9.yaml10
1 files changed, 9 insertions, 1 deletions
diff --git a/trigger-openembedded-lkft-linux-stable-rc-4.9.yaml b/trigger-openembedded-lkft-linux-stable-rc-4.9.yaml
index 4b912bc747..74339e3ec1 100644
--- a/trigger-openembedded-lkft-linux-stable-rc-4.9.yaml
+++ b/trigger-openembedded-lkft-linux-stable-rc-4.9.yaml
@@ -35,6 +35,14 @@
- build-name:
name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
builders:
- - trigger-builds:
+ - shell: |
+ #!/bin/bash -e
+ echo KERNEL_DESCRIBE=$(git describe --always) >> lkft_parameters
+ echo SRCREV_kernel=${GIT_COMMIT} >> lkft_parameters
+ cat lkft_parameters
+ publishers:
+ - trigger-parameterized-builds:
- project:
- 'openembedded-lkft-linux-stable-rc-4.9'
+ condition: SUCCESS
+ property-file: lkft_parameters