aboutsummaryrefslogtreecommitdiff
path: root/rpb-openembedded-rocko.yaml
diff options
context:
space:
mode:
authorDaniel Díaz <daniel.diaz@linaro.org>2017-12-06 08:22:41 -0600
committerFathi Boudra <fathi.boudra@linaro.org>2017-12-21 11:20:08 +0200
commit0d498766cc3217f77bd7a457588fe07efb3fbbcc (patch)
treefc5f733926e504223a29360cfff37d5a608275db /rpb-openembedded-rocko.yaml
parent4fb8513ae0b9aae7e0157a007f08a06bdad53d59 (diff)
rpb-openembedded-{morty,rocko,master}: submit to lava v2 and qa-reports
For Morty, Rocko and master, submit LAVA boot test for the following machines: * b2260 * dragonboard-410c * hi6220-hikey * juno * x15 Change-Id: I78bd954c7bcb2fdfb5c9f15118727a6e64bd4636 Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Diffstat (limited to 'rpb-openembedded-rocko.yaml')
-rw-r--r--rpb-openembedded-rocko.yaml93
1 files changed, 45 insertions, 48 deletions
diff --git a/rpb-openembedded-rocko.yaml b/rpb-openembedded-rocko.yaml
index c2059fbb9f..6d9ab7135d 100644
--- a/rpb-openembedded-rocko.yaml
+++ b/rpb-openembedded-rocko.yaml
@@ -34,11 +34,17 @@
name: PUB_DEST
default: 'reference-platform/embedded/${MANIFEST_BRANCH}/${MACHINE}/${BUILD_NUMBER}/${DISTRO}'
- string:
- name: BUNDLE_STREAM_NAME
- default: '/public/team/linaro/rpb-openembedded-${MANIFEST_BRANCH}/'
- - string:
name: LAVA_SERVER
default: 'validation.linaro.org/RPC2/'
+ - string:
+ name: QA_SERVER
+ default: 'https://qa-reports.linaro.org'
+ - string:
+ name: QA_SERVER_PROJECT
+ default: 'rpb-oe'
+ - string:
+ name: QA_SERVER_TEAM
+ default: 'rpb'
disabled: false
node: master
display-name: 'Reference Platform - OpenEmbedded (rocko)'
@@ -75,62 +81,53 @@
- ssh-agent-credentials:
users:
- 'OE_COMMIT_BOT_KEY'
+ - credentials-binding:
+ - text:
+ credential-id: QA_REPORTS_TOKEN
+ variable: QA_REPORTS_TOKEN
builders:
- - shell:
- !include-raw: rpb-openembedded/builders.sh
- - inject:
- properties-file: post_build_lava_parameters
- - linaro-publish-token
- - shell:
- !include-raw: rpb-openembedded/publishers.sh
- shell: |
+ #!/bin/bash
+
+ # Mapping for MACHINE -> DEVICE_TYPE
case "${MACHINE}" in
+ am57xx-evm)
+ DEVICE_TYPE=x15
+ ;;
dragonboard-410c)
- # FIXME convert to LAVA v2
- #export DEVICE_TYPE=apq8016-sbc
+ DEVICE_TYPE=dragonboard-410c
+ ;;
+ hikey)
+ DEVICE_TYPE=hi6220-hikey
+ ;;
+ juno)
+ DEVICE_TYPE=juno
+ ;;
+ stih410-b2260)
+ DEVICE_TYPE=b2260
;;
*)
echo "Skip DEVICE_TYPE for ${MACHINE}"
;;
esac
- rm -rf configs lci-build-tools
- git clone --depth 1 http://git.linaro.org/ci/lci-build-tools.git
- git clone --depth 1 http://git.linaro.org/ci/job/configs.git
-
- # Handle LAVA v1 (json)/v2 (yaml) test definitions
- case "${DEVICE_TYPE}" in
- apq8016-sbc)
- ./lci-build-tools/yaml-to-json.py configs/rpb-openembedded/lava-job-definitions/${DEVICE_TYPE}/template.yaml \
- > custom_lava_job_definition.json
-
- cat << EOF > post_build_lava_parameters
- DEVICE_TYPE=${DEVICE_TYPE}
- BUNDLE_STREAM_NAME=${BUNDLE_STREAM_NAME}
- CUSTOM_JSON_URL=${JOB_URL}/ws/custom_lava_job_definition.json
- LAVA_SERVER=${LAVA_SERVER}
- EOF
- ;;
- b2260)
- sed -e "s|\${KERNEL_URL}|${KERNEL_URL}|" \
- -e "s|\${DTB_URL}|${DTB_URL}|" \
- -e "s|\${NFSROOTFS_URL}|${NFSROOTFS_URL}|" \
- -e "s|\${BUILD_URL}|${BUILD_URL}|" \
- < configs/rpb-openembedded/lava-job-definitions/${DEVICE_TYPE}/template.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
- ;;
- esac
- - trigger-builds:
- - project: 'post-build-lava'
- property-file: post_build_lava_parameters
- block: true
+ echo "DEVICE_TYPE=${DEVICE_TYPE}" > device_type_parameters
+ - inject:
+ properties-file: device_type_parameters
+ - shell:
+ !include-raw: rpb-openembedded/builders.sh
+ - inject:
+ properties-file: post_build_lava_parameters
+ - linaro-publish-token
+ - shell:
+ !include-raw: rpb-openembedded/publishers.sh
+ - shell:
+ !include-raw: rpb-openembedded/submit_for_testing.sh
publishers:
+ - groovy-postbuild:
+ script:
+ !include-raw:
+ - openembedded-lkft/postbuild.groovy
# We can only archive files that are located in the workspace
# - archive:
# artifacts: 'build/tmp-*glibc/deploy/images/${MACHINE}/*'