aboutsummaryrefslogtreecommitdiff
path: root/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 /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 'openembedded-lkft-linux-stable-rc-4.9.yaml')
-rw-r--r--openembedded-lkft-linux-stable-rc-4.9.yaml14
1 files changed, 8 insertions, 6 deletions
diff --git a/openembedded-lkft-linux-stable-rc-4.9.yaml b/openembedded-lkft-linux-stable-rc-4.9.yaml
index 20f57e9cbf..5a50a1d2e5 100644
--- a/openembedded-lkft-linux-stable-rc-4.9.yaml
+++ b/openembedded-lkft-linux-stable-rc-4.9.yaml
@@ -31,6 +31,10 @@
name: KERNEL_REPO
default: 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git'
- string:
+ name: KERNEL_DESCRIBE
+ - string:
+ name: SRCREV_kernel
+ - string:
name: IMAGES
default: 'rpb-console-image'
- string:
@@ -92,18 +96,16 @@
esac
echo "DEVICE_TYPE=${DEVICE_TYPE}" > device_type_parameters
+ echo "#${BUILD_NUMBER}-${SRCREV_kernel:0:8}" > ${WORKSPACE}/version.txt
+ - build-name-setter:
+ name: 'version.txt'
+ file: true
- inject:
properties-file: device_type_parameters
- shell:
!include-raw: openembedded-lkft/builders.sh
- inject:
properties-file: post_build_lava_parameters
- - shell: |
- #!/bin/bash -e
- echo "#${BUILD_NUMBER}-${KERNEL_COMMIT:0:8}" > ${WORKSPACE}/version.txt
- - build-name-setter:
- name: 'version.txt'
- file: true
- linaro-publish-token
- shell: |
#!/bin/bash