aboutsummaryrefslogtreecommitdiff
path: root/optee-os.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2017-10-18 13:32:43 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2017-10-18 10:34:50 +0000
commit7a1428608f6f87b03ed4c240aee197c8b05e9259 (patch)
tree0ce48685cfb00b05d9de146f5882f58550f8835a /optee-os.yaml
parentb92bfd2b490a02c44e6d797858857200bfefdcd2 (diff)
optee-os: submit job to LAVA staging instance
Change-Id: I9aa34f65ab805158ffc56b7a1061e4bcdb8b854c Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'optee-os.yaml')
-rw-r--r--optee-os.yaml37
1 files changed, 37 insertions, 0 deletions
diff --git a/optee-os.yaml b/optee-os.yaml
index 27b1410d..34953c24 100644
--- a/optee-os.yaml
+++ b/optee-os.yaml
@@ -7,6 +7,7 @@
anonymous:
- job-read
- job-extended-read
+ - job-workspace
op-tee:
- job-read
- job-extended-read
@@ -16,6 +17,13 @@
- build-discarder:
days-to-keep: 90
num-to-keep: 90
+ parameters:
+ - string:
+ name: PUB_DEST
+ default: 'components/optee/os/${BUILD_NUMBER}'
+ - string:
+ name: LAVA_SERVER
+ default: 'staging.validation.linaro.org/RPC2/'
disabled: false
node: docker-xenial-amd64
display-name: 'OP-TEE Trusted OS'
@@ -39,3 +47,32 @@
- linaro-publish-token
- shell:
!include-raw: optee/os/publishers.sh
+ - shell: |
+ #!/bin/bash
+
+ set -e
+
+ rm -rf configs
+ git clone --depth 1 http://git.linaro.org/ci/job/configs.git
+
+ DEVICE_TYPE=x86
+
+ sed -e "s|\${BUILD_NUMBER}|${BUILD_NUMBER}|" \
+ -e "s|\${BUILD_URL}|${BUILD_URL}|" \
+ -e "s|\${GIT_BRANCH}|${GIT_BRANCH}|" \
+ -e "s|\${GIT_COMMIT}|${GIT_COMMIT}|" \
+ -e "s|\${GIT_URL}|${GIT_URL}|" \
+ -e "s|\${PUBLISH_SERVER}|${PUBLISH_SERVER}|" \
+ -e "s|\${PUB_DEST}|${PUB_DEST}|" \
+ < configs/optee/os/lava-job-definitions/${DEVICE_TYPE}/template-optee-xtest-qemu.yaml \
+ > custom_lava_job_definition.yaml
+
+ cat << EOF > post_build_lava_parameters
+ DEVICE_TYPE=${DEVICE_TYPE}
+ CUSTOM_YAML_URL=${JOB_URL}/ws/custom_lava_job_definition.yaml
+ LAVA_SERVER=${LAVA_SERVER}
+ EOF
+ - trigger-builds:
+ - project: 'post-build-lava'
+ property-file: post_build_lava_parameters
+ block: true