- job: name: lkft-gki-kernel project-type: freestyle defaults: global properties: - authorization: anonymous: - job-read - job-extended-read linaro: - job-build - job-cancel - build-discarder: days-to-keep: 180 num-to-keep: 150 artifact-num-to-keep: 1 parameters: - string: name: BUILD_DIR default: lkft - string: name: ANDROID_BUILD_CONFIG - string: name: KERNEL_DESCRIBE - string: name: KERNEL_BRANCH - string: name: SRCREV_kernel - string: name: MAKE_KERNELVERSION disabled: false node: docker-xenial-android-lkft display-name: 'LKFT - build android gki kernels' wrappers: - timestamps - build-name: name: '#${BUILD_NUMBER}-${ENV,var="KERNEL_DESCRIBE"}-${ENV,var="KERNEL_BRANCH"}' - timeout: timeout: 500 - credentials-binding: - text: credential-id: ARTIFACTORIAL_TOKEN variable: ARTIFACTORIAL_TOKEN builders: - shell: !include-raw: lkft/common/builders-v2.sh - linaro-publish-token - shell: !include-raw: lkft/common/publisher-v2.sh - shell: | #!/bin/bash -ex env # https://snapshots.linaro.org/android/lkft/lkft-gki-android-mainline/67/lkft-gki-android-5.4-Image.gz f_gki_image_gz_url=android/lkft/${JOB_NAME}/${BUILD_NUMBER}/${ANDROID_BUILD_CONFIG}-Image.gz build_configs_mainline="lkft-db845c-aosp-master-mainline-gki lkft-hikey960-aosp-master-mainline-gki" build_configs_54="lkft-db845c-aosp-master-5.4-gki lkft-hikey960-aosp-master-5.4-gki" build_configs_54_stable="lkft-db845c-aosp-master-5.4-stable-gki lkft-hikey960-aosp-master-5.4-stable-gki" build_configs="" case "X${KERNEL_BRANCH}" in "Xandroid-5.4-stable") build_configs="${build_configs_54_stable}" ;; "Xandroid-5.4") build_configs="${build_configs_54}" ;; "Xandroid-mainline") build_configs="${build_configs_mainline}" ;; "X*") build_configs="" ;; esac rm -fr params_*.txt test_*.txt for build_config in ${build_configs}; do f_params="params_${KERNEL_BRANCH}-${build_config}.txt" cat << __EOF__ > ${f_params} ANDROID_BUILD_CONFIG=${build_config} KERNEL_DESCRIBE=${KERNEL_DESCRIBE} KERNEL_BRANCH=${KERNEL_BRANCH} SRCREV_kernel=${SRCREV_kernel} BUILD_REFERENCE_IMAGE_GZ_URL=http://snapshots.linaro.org/${f_gki_image_gz_url} MAKE_KERNELVERSION=${MAKE_KERNELVERSION} __EOF__ cat ${f_params} done - trigger-builds: - project: lkft-generic-build property-file: params_android-5.4-stable-lkft-db845c-aosp-master-5.4-stable-gki.txt - project: lkft-generic-build property-file: params_android-5.4-stable-lkft-hikey960-aosp-master-5.4-stable-gki.txt - project: lkft-generic-build property-file: params_android-5.4-lkft-db845c-aosp-master-5.4-gki.txt - project: lkft-generic-build property-file: params_android-5.4-lkft-hikey960-aosp-master-5.4-gki.txt - project: lkft-generic-build property-file: params_android-mainline-lkft-db845c-aosp-master-mainline-gki.txt - project: lkft-generic-build property-file: params_android-mainline-lkft-hikey960-aosp-master-mainline-gki.txt publishers: - logparser: parse-rules: '/var/jenkins_home/userContent/android.parse' unstable-on-warning: false fail-on-error: false - fingerprint: files: 'build/fingerprints/*' - groovy-postbuild: script: !include-raw: openembedded-lkft/postbuild.groovy - email: recipients: 'lkft-maintainers@lists.linaro.org' subject: '[CI] android gki + aosp master ${KERNEL_BRANCH} ${SRCREV_kernel} ${BUILD_STATUS}' body: | Build URL: ${PROJECT_URL}${BUILD_NUMBER}/ Full log: ${PROJECT_URL}${BUILD_NUMBER}/consoleText Git branch: ${KERNEL_BRANCH} Git commit: ${SRCREV_kernel} Errors: ${BUILD_LOG_REGEX, regex="^ERROR:.* ", linesBefore=0, linesAfter=0, showTruncatedLines=false} presend-script: !include-raw: openembedded-lkft/presend-script.groovy