diff options
-rw-r--r-- | openembedded-lkft-android-common-4.4-n-release.yaml | 160 | ||||
-rw-r--r-- | openembedded-lkft-android-common-4.4-n.yaml | 160 | ||||
-rw-r--r-- | openembedded-lkft-android-common-4.4-o-release.yaml | 160 | ||||
-rw-r--r-- | openembedded-lkft-android-common-4.4-o.yaml | 160 | ||||
-rw-r--r-- | openembedded-lkft-android-common-4.9-o-release.yaml | 160 | ||||
-rw-r--r-- | openembedded-lkft-android-common-4.9-o.yaml | 160 | ||||
-rwxr-xr-x | openembedded-lkft/builders.sh | 2 |
7 files changed, 961 insertions, 1 deletions
diff --git a/openembedded-lkft-android-common-4.4-n-release.yaml b/openembedded-lkft-android-common-4.4-n-release.yaml new file mode 100644 index 0000000000..ff4eeb6211 --- /dev/null +++ b/openembedded-lkft-android-common-4.4-n-release.yaml @@ -0,0 +1,160 @@ +- job: + name: openembedded-lkft-android-common-4.4-n-release + 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 + parameters: + - string: + name: KERNEL_BRANCH + default: 'android-4.4-n-release' + - string: + name: KERNEL_VERSION + default: '4.4' + - string: + name: KERNEL_RECIPE + default: 'linux-generic-android-common-n-release' + - string: + name: KERNEL_REPO + default: 'https://android.googlesource.com/kernel/common' + - string: + name: KERNEL_DESCRIBE + - string: + name: SRCREV_kernel + - string: + name: IMAGES + default: 'rpb-console-image' + - string: + name: MANIFEST_BRANCH + default: 'morty' + - string: + name: BUNDLE_STREAM_NAME + default: '/public/team/linaro/openembedded-lkft-${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: 'android-common-4.4-n-release-oe' + - string: + name: KSELFTEST_SKIPLIST + default: '' + disabled: false + node: master + display-name: 'LKFT - Android Common 4.4 N Release (OpenEmbedded/morty)' + axes: + - axis: + type: user-defined + name: MACHINE + values: + - 'intel-core2-32' + - axis: + type: user-defined + name: DISTRO + values: + - rpb + - axis: + type: slave + name: label + values: + - docker-jessie-amd64 + 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 + + # Mapping for MACHINE -> DEVICE_TYPE + case "${MACHINE}" in + intel-core2-32) + DEVICE_TYPE=x86 + ;; + 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 + - linaro-publish-token + - shell: | + #!/bin/bash + + # Publish + test -d ${HOME}/bin || mkdir ${HOME}/bin + wget -q 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 \ + ${DEPLOY_DIR_IMAGE}/ ${BASE_URL} + - shell: | + #!/bin/bash + + rm -rf configs + git clone --depth 1 http://git.linaro.org/ci/job/configs.git + + # Unset device type for all machines except hikey + # We submit with post-build-lava only for Hikey + [ "${MACHINE}" != "hikey" ] && unset DEVICE_TYPE + + [ -z "${DEVICE_TYPE}" ] || \ + sed -e "s|\${BOOT_URL}|${BOOT_URL}|" \ + -e "s|\${SYSTEM_URL}|${SYSTEM_URL}|" \ + -e "s|\${BUILD_URL}|${BUILD_URL}|" \ + -e "s|\${BUNDLE_STREAM_NAME}|${BUNDLE_STREAM_NAME}|" \ + -e "s|\${LAVA_SERVER}|${LAVA_SERVER}|" \ + -e "s|\${DEVICE_TYPE}|${DEVICE_TYPE}|" \ + < configs/openembedded-lkft/lava-job-definitions/${DEVICE_TYPE}/template.json \ + > 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: + !include-raw: openembedded-lkft/submit_for_testing.sh + publishers: + - groovy-postbuild: + script: + !include-raw: openembedded-lkft/postbuild.groovy + - email-ext: + recipients: 'lkft-maintainers@lists.linaro.org, fathi.boudra@linaro.org, milosz.wasilewski@linaro.org, naresh.kamboju@linaro.org' + always: true + matrix-trigger: only-parent diff --git a/openembedded-lkft-android-common-4.4-n.yaml b/openembedded-lkft-android-common-4.4-n.yaml new file mode 100644 index 0000000000..99c3699c0a --- /dev/null +++ b/openembedded-lkft-android-common-4.4-n.yaml @@ -0,0 +1,160 @@ +- job: + name: openembedded-lkft-android-common-4.4-n + 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 + parameters: + - string: + name: KERNEL_BRANCH + default: 'android-4.4-n' + - string: + name: KERNEL_VERSION + default: '4.4' + - string: + name: KERNEL_RECIPE + default: 'linux-generic-android-common-n' + - string: + name: KERNEL_REPO + default: 'https://android.googlesource.com/kernel/common' + - string: + name: KERNEL_DESCRIBE + - string: + name: SRCREV_kernel + - string: + name: IMAGES + default: 'rpb-console-image' + - string: + name: MANIFEST_BRANCH + default: 'morty' + - string: + name: BUNDLE_STREAM_NAME + default: '/public/team/linaro/openembedded-lkft-${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: 'android-common-4.4-n-oe' + - string: + name: KSELFTEST_SKIPLIST + default: '' + disabled: false + node: master + display-name: 'LKFT - Android Common 4.4 N (OpenEmbedded/morty)' + axes: + - axis: + type: user-defined + name: MACHINE + values: + - 'intel-core2-32' + - axis: + type: user-defined + name: DISTRO + values: + - rpb + - axis: + type: slave + name: label + values: + - docker-jessie-amd64 + 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 + + # Mapping for MACHINE -> DEVICE_TYPE + case "${MACHINE}" in + intel-core2-32) + DEVICE_TYPE=x86 + ;; + 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 + - linaro-publish-token + - shell: | + #!/bin/bash + + # Publish + test -d ${HOME}/bin || mkdir ${HOME}/bin + wget -q 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 \ + ${DEPLOY_DIR_IMAGE}/ ${BASE_URL} + - shell: | + #!/bin/bash + + rm -rf configs + git clone --depth 1 http://git.linaro.org/ci/job/configs.git + + # Unset device type for all machines except hikey + # We submit with post-build-lava only for Hikey + [ "${MACHINE}" != "hikey" ] && unset DEVICE_TYPE + + [ -z "${DEVICE_TYPE}" ] || \ + sed -e "s|\${BOOT_URL}|${BOOT_URL}|" \ + -e "s|\${SYSTEM_URL}|${SYSTEM_URL}|" \ + -e "s|\${BUILD_URL}|${BUILD_URL}|" \ + -e "s|\${BUNDLE_STREAM_NAME}|${BUNDLE_STREAM_NAME}|" \ + -e "s|\${LAVA_SERVER}|${LAVA_SERVER}|" \ + -e "s|\${DEVICE_TYPE}|${DEVICE_TYPE}|" \ + < configs/openembedded-lkft/lava-job-definitions/${DEVICE_TYPE}/template.json \ + > 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: + !include-raw: openembedded-lkft/submit_for_testing.sh + publishers: + - groovy-postbuild: + script: + !include-raw: openembedded-lkft/postbuild.groovy + - email-ext: + recipients: 'lkft-maintainers@lists.linaro.org, fathi.boudra@linaro.org, milosz.wasilewski@linaro.org, naresh.kamboju@linaro.org' + always: true + matrix-trigger: only-parent diff --git a/openembedded-lkft-android-common-4.4-o-release.yaml b/openembedded-lkft-android-common-4.4-o-release.yaml new file mode 100644 index 0000000000..e80c694b9b --- /dev/null +++ b/openembedded-lkft-android-common-4.4-o-release.yaml @@ -0,0 +1,160 @@ +- job: + name: openembedded-lkft-android-common-4.4-o-release + 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 + parameters: + - string: + name: KERNEL_BRANCH + default: 'android-4.4-o-release' + - string: + name: KERNEL_VERSION + default: '4.4' + - string: + name: KERNEL_RECIPE + default: 'linux-generic-android-common-o-release' + - string: + name: KERNEL_REPO + default: 'https://android.googlesource.com/kernel/common' + - string: + name: KERNEL_DESCRIBE + - string: + name: SRCREV_kernel + - string: + name: IMAGES + default: 'rpb-console-image' + - string: + name: MANIFEST_BRANCH + default: 'morty' + - string: + name: BUNDLE_STREAM_NAME + default: '/public/team/linaro/openembedded-lkft-${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: 'android-common-4.4-o-release-oe' + - string: + name: KSELFTEST_SKIPLIST + default: '' + disabled: false + node: master + display-name: 'LKFT - Android Common 4.4 O Release (OpenEmbedded/morty)' + axes: + - axis: + type: user-defined + name: MACHINE + values: + - 'intel-core2-32' + - axis: + type: user-defined + name: DISTRO + values: + - rpb + - axis: + type: slave + name: label + values: + - docker-jessie-amd64 + 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 + + # Mapping for MACHINE -> DEVICE_TYPE + case "${MACHINE}" in + intel-core2-32) + DEVICE_TYPE=x86 + ;; + 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 + - linaro-publish-token + - shell: | + #!/bin/bash + + # Publish + test -d ${HOME}/bin || mkdir ${HOME}/bin + wget -q 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 \ + ${DEPLOY_DIR_IMAGE}/ ${BASE_URL} + - shell: | + #!/bin/bash + + rm -rf configs + git clone --depth 1 http://git.linaro.org/ci/job/configs.git + + # Unset device type for all machines except hikey + # We submit with post-build-lava only for Hikey + [ "${MACHINE}" != "hikey" ] && unset DEVICE_TYPE + + [ -z "${DEVICE_TYPE}" ] || \ + sed -e "s|\${BOOT_URL}|${BOOT_URL}|" \ + -e "s|\${SYSTEM_URL}|${SYSTEM_URL}|" \ + -e "s|\${BUILD_URL}|${BUILD_URL}|" \ + -e "s|\${BUNDLE_STREAM_NAME}|${BUNDLE_STREAM_NAME}|" \ + -e "s|\${LAVA_SERVER}|${LAVA_SERVER}|" \ + -e "s|\${DEVICE_TYPE}|${DEVICE_TYPE}|" \ + < configs/openembedded-lkft/lava-job-definitions/${DEVICE_TYPE}/template.json \ + > 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: + !include-raw: openembedded-lkft/submit_for_testing.sh + publishers: + - groovy-postbuild: + script: + !include-raw: openembedded-lkft/postbuild.groovy + - email-ext: + recipients: 'lkft-maintainers@lists.linaro.org, fathi.boudra@linaro.org, milosz.wasilewski@linaro.org, naresh.kamboju@linaro.org' + always: true + matrix-trigger: only-parent diff --git a/openembedded-lkft-android-common-4.4-o.yaml b/openembedded-lkft-android-common-4.4-o.yaml new file mode 100644 index 0000000000..a16f7ff3d6 --- /dev/null +++ b/openembedded-lkft-android-common-4.4-o.yaml @@ -0,0 +1,160 @@ +- job: + name: openembedded-lkft-android-common-4.4-o + 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 + parameters: + - string: + name: KERNEL_BRANCH + default: 'android-4.4-o' + - string: + name: KERNEL_VERSION + default: '4.4' + - string: + name: KERNEL_RECIPE + default: 'linux-generic-android-common-o' + - string: + name: KERNEL_REPO + default: 'https://android.googlesource.com/kernel/common' + - string: + name: KERNEL_DESCRIBE + - string: + name: SRCREV_kernel + - string: + name: IMAGES + default: 'rpb-console-image' + - string: + name: MANIFEST_BRANCH + default: 'morty' + - string: + name: BUNDLE_STREAM_NAME + default: '/public/team/linaro/openembedded-lkft-${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: 'android-common-4.4-o-oe' + - string: + name: KSELFTEST_SKIPLIST + default: '' + disabled: false + node: master + display-name: 'LKFT - Android Common 4.4 O (OpenEmbedded/morty)' + axes: + - axis: + type: user-defined + name: MACHINE + values: + - 'intel-core2-32' + - axis: + type: user-defined + name: DISTRO + values: + - rpb + - axis: + type: slave + name: label + values: + - docker-jessie-amd64 + 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 + + # Mapping for MACHINE -> DEVICE_TYPE + case "${MACHINE}" in + intel-core2-32) + DEVICE_TYPE=x86 + ;; + 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 + - linaro-publish-token + - shell: | + #!/bin/bash + + # Publish + test -d ${HOME}/bin || mkdir ${HOME}/bin + wget -q 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 \ + ${DEPLOY_DIR_IMAGE}/ ${BASE_URL} + - shell: | + #!/bin/bash + + rm -rf configs + git clone --depth 1 http://git.linaro.org/ci/job/configs.git + + # Unset device type for all machines except hikey + # We submit with post-build-lava only for Hikey + [ "${MACHINE}" != "hikey" ] && unset DEVICE_TYPE + + [ -z "${DEVICE_TYPE}" ] || \ + sed -e "s|\${BOOT_URL}|${BOOT_URL}|" \ + -e "s|\${SYSTEM_URL}|${SYSTEM_URL}|" \ + -e "s|\${BUILD_URL}|${BUILD_URL}|" \ + -e "s|\${BUNDLE_STREAM_NAME}|${BUNDLE_STREAM_NAME}|" \ + -e "s|\${LAVA_SERVER}|${LAVA_SERVER}|" \ + -e "s|\${DEVICE_TYPE}|${DEVICE_TYPE}|" \ + < configs/openembedded-lkft/lava-job-definitions/${DEVICE_TYPE}/template.json \ + > 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: + !include-raw: openembedded-lkft/submit_for_testing.sh + publishers: + - groovy-postbuild: + script: + !include-raw: openembedded-lkft/postbuild.groovy + - email-ext: + recipients: 'lkft-maintainers@lists.linaro.org, fathi.boudra@linaro.org, milosz.wasilewski@linaro.org, naresh.kamboju@linaro.org' + always: true + matrix-trigger: only-parent diff --git a/openembedded-lkft-android-common-4.9-o-release.yaml b/openembedded-lkft-android-common-4.9-o-release.yaml new file mode 100644 index 0000000000..47b7109ac6 --- /dev/null +++ b/openembedded-lkft-android-common-4.9-o-release.yaml @@ -0,0 +1,160 @@ +- job: + name: openembedded-lkft-android-common-4.9-o-release + 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 + parameters: + - string: + name: KERNEL_BRANCH + default: 'android-4.9-o-release' + - string: + name: KERNEL_VERSION + default: '4.9' + - string: + name: KERNEL_RECIPE + default: 'linux-generic-android-common-o-release' + - string: + name: KERNEL_REPO + default: 'https://android.googlesource.com/kernel/common' + - string: + name: KERNEL_DESCRIBE + - string: + name: SRCREV_kernel + - string: + name: IMAGES + default: 'rpb-console-image' + - string: + name: MANIFEST_BRANCH + default: 'morty' + - string: + name: BUNDLE_STREAM_NAME + default: '/public/team/linaro/openembedded-lkft-${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: 'android-common-4.9-o-release-oe' + - string: + name: KSELFTEST_SKIPLIST + default: '' + disabled: false + node: master + display-name: 'LKFT - Android Common 4.9 O Release (OpenEmbedded/morty)' + axes: + - axis: + type: user-defined + name: MACHINE + values: + - 'intel-core2-32' + - axis: + type: user-defined + name: DISTRO + values: + - rpb + - axis: + type: slave + name: label + values: + - docker-jessie-amd64 + 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 + + # Mapping for MACHINE -> DEVICE_TYPE + case "${MACHINE}" in + intel-core2-32) + DEVICE_TYPE=x86 + ;; + 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 + - linaro-publish-token + - shell: | + #!/bin/bash + + # Publish + test -d ${HOME}/bin || mkdir ${HOME}/bin + wget -q 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 \ + ${DEPLOY_DIR_IMAGE}/ ${BASE_URL} + - shell: | + #!/bin/bash + + rm -rf configs + git clone --depth 1 http://git.linaro.org/ci/job/configs.git + + # Unset device type for all machines except hikey + # We submit with post-build-lava only for Hikey + [ "${MACHINE}" != "hikey" ] && unset DEVICE_TYPE + + [ -z "${DEVICE_TYPE}" ] || \ + sed -e "s|\${BOOT_URL}|${BOOT_URL}|" \ + -e "s|\${SYSTEM_URL}|${SYSTEM_URL}|" \ + -e "s|\${BUILD_URL}|${BUILD_URL}|" \ + -e "s|\${BUNDLE_STREAM_NAME}|${BUNDLE_STREAM_NAME}|" \ + -e "s|\${LAVA_SERVER}|${LAVA_SERVER}|" \ + -e "s|\${DEVICE_TYPE}|${DEVICE_TYPE}|" \ + < configs/openembedded-lkft/lava-job-definitions/${DEVICE_TYPE}/template.json \ + > 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: + !include-raw: openembedded-lkft/submit_for_testing.sh + publishers: + - groovy-postbuild: + script: + !include-raw: openembedded-lkft/postbuild.groovy + - email-ext: + recipients: 'lkft-maintainers@lists.linaro.org, fathi.boudra@linaro.org, milosz.wasilewski@linaro.org, naresh.kamboju@linaro.org' + always: true + matrix-trigger: only-parent diff --git a/openembedded-lkft-android-common-4.9-o.yaml b/openembedded-lkft-android-common-4.9-o.yaml new file mode 100644 index 0000000000..3662f1134b --- /dev/null +++ b/openembedded-lkft-android-common-4.9-o.yaml @@ -0,0 +1,160 @@ +- job: + name: openembedded-lkft-android-common-4.9-o + 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 + parameters: + - string: + name: KERNEL_BRANCH + default: 'android-4.9-o' + - string: + name: KERNEL_VERSION + default: '4.9' + - string: + name: KERNEL_RECIPE + default: 'linux-generic-android-common-o' + - string: + name: KERNEL_REPO + default: 'https://android.googlesource.com/kernel/common' + - string: + name: KERNEL_DESCRIBE + - string: + name: SRCREV_kernel + - string: + name: IMAGES + default: 'rpb-console-image' + - string: + name: MANIFEST_BRANCH + default: 'morty' + - string: + name: BUNDLE_STREAM_NAME + default: '/public/team/linaro/openembedded-lkft-${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: 'android-common-4.9-o-oe' + - string: + name: KSELFTEST_SKIPLIST + default: '' + disabled: false + node: master + display-name: 'LKFT - Android Common 4.9 O (OpenEmbedded/morty)' + axes: + - axis: + type: user-defined + name: MACHINE + values: + - 'intel-core2-32' + - axis: + type: user-defined + name: DISTRO + values: + - rpb + - axis: + type: slave + name: label + values: + - docker-jessie-amd64 + 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 + + # Mapping for MACHINE -> DEVICE_TYPE + case "${MACHINE}" in + intel-core2-32) + DEVICE_TYPE=x86 + ;; + 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 + - linaro-publish-token + - shell: | + #!/bin/bash + + # Publish + test -d ${HOME}/bin || mkdir ${HOME}/bin + wget -q 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 \ + ${DEPLOY_DIR_IMAGE}/ ${BASE_URL} + - shell: | + #!/bin/bash + + rm -rf configs + git clone --depth 1 http://git.linaro.org/ci/job/configs.git + + # Unset device type for all machines except hikey + # We submit with post-build-lava only for Hikey + [ "${MACHINE}" != "hikey" ] && unset DEVICE_TYPE + + [ -z "${DEVICE_TYPE}" ] || \ + sed -e "s|\${BOOT_URL}|${BOOT_URL}|" \ + -e "s|\${SYSTEM_URL}|${SYSTEM_URL}|" \ + -e "s|\${BUILD_URL}|${BUILD_URL}|" \ + -e "s|\${BUNDLE_STREAM_NAME}|${BUNDLE_STREAM_NAME}|" \ + -e "s|\${LAVA_SERVER}|${LAVA_SERVER}|" \ + -e "s|\${DEVICE_TYPE}|${DEVICE_TYPE}|" \ + < configs/openembedded-lkft/lava-job-definitions/${DEVICE_TYPE}/template.json \ + > 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: + !include-raw: openembedded-lkft/submit_for_testing.sh + publishers: + - groovy-postbuild: + script: + !include-raw: openembedded-lkft/postbuild.groovy + - email-ext: + recipients: 'lkft-maintainers@lists.linaro.org, fathi.boudra@linaro.org, milosz.wasilewski@linaro.org, naresh.kamboju@linaro.org' + always: true + matrix-trigger: only-parent diff --git a/openembedded-lkft/builders.sh b/openembedded-lkft/builders.sh index 108ba9f692..4145d12065 100755 --- a/openembedded-lkft/builders.sh +++ b/openembedded-lkft/builders.sh @@ -84,7 +84,7 @@ PREFERRED_PROVIDER_virtual/kernel = "${KERNEL_RECIPE}" EOF case "${KERNEL_RECIPE}" in - linux-hikey-aosp|linux-hikey-stable|linux-hikey-stable-rc) + linux-hikey-aosp|linux-hikey-stable|linux-hikey-stable-rc|linux-generic-android-common-o|linux-generic-android-common-o-release) cat << EOF >> ${distro_conf} PREFERRED_VERSION_${KERNEL_RECIPE} = "${KERNEL_VERSION}+git%" EOF |