diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2017-02-24 15:02:13 +0100 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2017-02-27 16:09:43 +0100 |
commit | 4613258ab0e744b4a92d65619fc77e8614d48a2b (patch) | |
tree | 8f91c3071ab872fd832d7ce647d5bb0c5198aecb /lt-qcom-debian-images-dragonboard410c.yaml | |
parent | f5f9c7ce5336417f9059f85bcdbc941be855e279 (diff) |
lt-qcom*: major cleanup in all the jobs
* removed all 'tracking' jobs, they are not used well for now, we will recreate
them in a better and more useful way later, when testing is in place
* rename all images job to start with lt-qcom-debian-images-xxx
* rename all bootloader jobs to start with lt-qcom-bootloader
* moved all helper scripts in common folder, they will be factorized later
Change-Id: I92f5bfae9dd880ec3fca3e095473fbbf82c926a7
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'lt-qcom-debian-images-dragonboard410c.yaml')
-rw-r--r-- | lt-qcom-debian-images-dragonboard410c.yaml | 164 |
1 files changed, 164 insertions, 0 deletions
diff --git a/lt-qcom-debian-images-dragonboard410c.yaml b/lt-qcom-debian-images-dragonboard410c.yaml new file mode 100644 index 00000000..15233a2e --- /dev/null +++ b/lt-qcom-debian-images-dragonboard410c.yaml @@ -0,0 +1,164 @@ +- job: + name: lt-qcom-debian-images-dragonboard410c + project-type: freestyle + defaults: global + logrotate: + daysToKeep: 30 + numToKeep: 30 + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + - job-workspace + linaro-landing-team-qualcomm-personnel: + - job-build + - job-cancel + parameters: + - string: + name: BUNDLE_STREAM_NAME + default: '/public/team/linaro/lt-qualcomm/' + - string: + name: DEVICE_TYPE + default: 'apq8016-sbc' + - string: + name: LAVA_SERVER + default: 'validation.linaro.org/RPC2/' + - string: + name: VENDOR + default: 'linaro' + - string: + name: OS_FLAVOUR + default: 'stretch' + - string: + name: PLATFORM_NAME + default: 'qcom-snapdragon-arm64' + - string: + name: ROOTFS + default: 'developer,arm64,1800M alip,arm64,2500M installer,arm64,1024M' + - string: + name: ROOTFS_PARTLABEL + default: 'rootfs' + - string: + name: DTBS + default: 'msm8916-mtp.dtb apq8016-sbc.dtb' + - string: + name: SERIAL_CONSOLE + default: 'ttyMSM0' + - string: + name: KERNEL_BRANCH + default: 'release/qcomlt-4.4' + - string: + name: QCOM_FIRMWARE + default: 'http://builds.96boards.org/snapshots/dragonboard410c/binaries/20161003/linux-board-support-package-v1.4.zip' + - string: + name: QCOM_FIRMWARE_MD5 + default: 'c93ddb1165f0e23123a02ac3c952f932' + - string: + name: BOOTIMG_PAGESIZE + default: '2048' + disabled: false + node: docker-jessie-amd64 + display-name: 'Qualcomm Debian based images for Snapdragon 410' + scm: + - git: + url: https://git.linaro.org/landing-teams/working/qualcomm/kernel.git + refspec: +refs/heads/${KERNEL_BRANCH}:refs/remotes/origin/${KERNEL_BRANCH} + name: origin + branches: + - refs/heads/${KERNEL_BRANCH} + skip-tag: true + shallow-clone: true + wipe-workspace: false + wrappers: + - timestamps + - build-name: + name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}' + builders: + - shell: + !include-raw: lt-qcom-debian-images/builders-arm64.sh + - shell: + !include-raw: lt-qcom-debian-images/installer-dragonboard-410c.sh + - linaro-publish-token: + host: builds.96boards.org + - shell: | + #!/bin/bash + set -ex + trap cleanup_exit INT TERM EXIT + cleanup_exit() + { + # cleanup here, only in case of error in this script + # normal cleanup deferred to later + [ $? = 0 ] && exit; + sudo git clean -fdxq + } + + # Create MD5SUMS file + (cd out && md5sum * > MD5SUMS.txt) + + # Publish to snapshots + test -d ${HOME}/bin || mkdir ${HOME}/bin + wget https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py + time python ${HOME}/bin/linaro-cp.py \ + --server ${PUBLISH_SERVER} \ + --link-latest \ + out snapshots/dragonboard410c/${VENDOR}/debian/${BUILD_NUMBER} + - shell: | + VERSION=$(cat build-version) + + export BOOT_URL=http://builds.96boards.org/snapshots/dragonboard410c/${VENDOR}/debian/${BUILD_NUMBER}/boot-${VENDOR}-${OS_FLAVOUR}-${PLATFORM_NAME}-${VERSION}.img.gz + export ROOTFS_BUILD_URL=http://builds.96boards.org/snapshots/dragonboard410c/${VENDOR}/debian/${BUILD_NUMBER}/${VENDOR}-${OS_FLAVOUR}-developer-${PLATFORM_NAME}-${VERSION}.img.gz + + 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 + ./lci-build-tools/yaml-to-json.py configs/lt-qcom-debian-images/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 + - trigger-builds: + - project: 'post-build-lava' + property-file: post_build_lava_parameters + block: true + - shell: | + VERSION=$(cat build-version) + + export BOOT_URL=http://builds.96boards.org/snapshots/dragonboard410c/${VENDOR}/debian/${BUILD_NUMBER}/boot-${VENDOR}-${OS_FLAVOUR}-${PLATFORM_NAME}-${VERSION}.img.gz + export ROOTFS_BUILD_URL=http://builds.96boards.org/snapshots/dragonboard410c/${VENDOR}/debian/${BUILD_NUMBER}/${VENDOR}-${OS_FLAVOUR}-developer-${PLATFORM_NAME}-${VERSION}.img.gz + + ./lci-build-tools/yaml-to-json.py configs/lt-qcom-debian-images/lava-job-definitions/${DEVICE_TYPE}/template-ltp.yaml > custom_lava_job_definition_ltp.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_ltp.json + LAVA_SERVER=${LAVA_SERVER} + EOF + - trigger-builds: + - project: 'post-build-lava' + property-file: post_build_lava_parameters + block: true + publishers: + - groovy-postbuild: + script: | + def build_number = manager.build.number + def vendor = manager.build.buildVariables.get('VENDOR') + def url = "http://builds.96boards.org/snapshots/dragonboard410c/${vendor}/debian/${build_number}/" + def desc = " <a href='${url}'>Build location<t/a>" + + if (manager.build.result == hudson.model.Result.SUCCESS) { + manager.build.setDescription(desc) + } + - email: + recipients: 'nicolas.dechesne@linaro.org fathi.boudra@linaro.org' + - email-ext: + recipients: 'qa-team@linaro.org' + always: true + - ircbot: + channels: + - name: '#linaro-lt-qcomm' + password: ${LT_QCOM_KEY} |