- job: name: lkft-ssh-testrunner project-type: matrix defaults: global properties: - authorization: anonymous: - job-read - job-extended-read - job-workspace linaro: - job-read - job-extended-read - job-build - job-cancel - build-discarder: days-to-keep: 30 num-to-keep: 30 artifact-num-to-keep: 1 disabled: true node: master display-name: 'LKFT - Submit SSH based test jobs (for evaluation purpose only)' triggers: # run at noon every day - timed: 'H 12 * * *' axes: - axis: type: user-defined name: BUILD_NAME values: - '4.4' - '4.9' - 'linux-lt-4.4' - 'linux-lts-4.4' - 'linux-next' - 'linux-mainline' - 'linux-stable-4.9' - 'linux-stable-rc-4.9' - axis: type: user-defined name: QA_SERVER values: #- 'https://qa-reports.linaro.org' - 'https://staging-qa-reports.linaro.org' - axis: type: user-defined name: LAVA_SERVER values: - 'https://lkft.validation.linaro.org/RPC2/' - axis: type: user-defined name: DEVICE_TYPE values: - 'hi6220-hikey' execution-strategy: sequential: false wrappers: - timestamps - ssh-agent-credentials: users: - 'OE_COMMIT_BOT_KEY' - credentials-binding: - text: credential-id: QA_REPORTS_TOKEN variable: QA_REPORTS_TOKEN builders: - shell: | #!/bin/bash export SNAPSHOTS_BASE_URL="http://snapshots.linaro.org/openembedded/lkft/morty/hikey/rpb/${BUILD_NAME}/latest/" MD5_FILENAME="MD5SUMS.txt" wget -O "${MD5_FILENAME}" "${SNAPSHOTS_BASE_URL}${MD5_FILENAME}" ROOTFS_FILENAME=$(grep -E "rpb-console-image-hikey-[0-9]{14}-[0-9]+\.rootfs\.img\.gz" "${MD5_FILENAME}" | awk '{print $2}') OE_BUILD_NUMBER="$(echo "${ROOTFS_FILENAME}" | awk -F'-' '{print $NF}' | awk -F'.' '{print $1}')" export SNAPSHOTS_BASE_URL="http://snapshots.linaro.org/openembedded/lkft/morty/hikey/rpb/${BUILD_NAME}/${OE_BUILD_NUMBER}/" BOOT_FILENAME=$(grep -E "boot\S*uefi\.img" "${MD5_FILENAME}" | awk '{print $2}') export BOOT_URL="${SNAPSHOTS_BASE_URL}${BOOT_FILENAME}" export SYSTEM_URL="${SNAPSHOTS_BASE_URL}${ROOTFS_FILENAME}" export KERNEL_BRANCH="lkft-lava-staging-${BUILD_NAME}" export KERNEL_VERSION="lkft-lava-staging-${BUILD_NAME}" export KERNEL_REPO="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/" export KERNEL_COMMIT="lkft-lava-staging-${BUILD_NUMBER}" export KERNEL_DESCRIBE="Kernel Describe" export KERNEL_CONFIG_URL="${SNAPSHOTS_BASE_URL}/defconfig" export KSELFTESTS_MAINLINE_URL="kselftest_url" export KSELFTESTS_MAINLINE_VERSION="kselftest_version" export LTP_URL="ltp_url" export LTP_VERSION="ltp_version" export LTP_REVISION="ltp_revision" export LIBHUGETLBFS_URL="libhugetlbfs_url" export LIBHUGETLBFS_VERSION="libhugetlbfs_version" export LIBHUGETLBFS_REVISION="libhugetlbfs_revision" export MAKE_KERNELVERSION="make_kernelversion" rm -rf configs git clone --depth 1 http://git.linaro.org/ci/job/configs.git python configs/lkft-ssh-testrunner/submit_for_testing.py \ --device-type ${DEVICE_TYPE} \ --build-number ${BUILD_NUMBER} \ --lava-server ${LAVA_SERVER} \ --qa-server ${QA_SERVER} \ --qa-server-team staging-lkft-ssh \ --qa-server-project ${BUILD_NAME} \ --git-commit ${BUILD_NUMBER} \ --template-path configs/lkft-ssh-testrunner/lava-job-definitions \ --template-names template-kselftest.yaml template-ltp.yaml template-libhugetlbfs.yaml publishers: - groovy-postbuild: script: !include-raw: openembedded-lkft/postbuild.groovy - email-ext: recipients: 'milosz.wasilewski@linaro.org' always: true matrix-trigger: only-parent