diff options
Diffstat (limited to 'lkft-aosp.yaml')
-rw-r--r-- | lkft-aosp.yaml | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/lkft-aosp.yaml b/lkft-aosp.yaml index ff4a804a42..7caf2f7339 100644 --- a/lkft-aosp.yaml +++ b/lkft-aosp.yaml @@ -10,7 +10,7 @@ anonymous: - job-read - job-extended-read - linaro: + everyone-flat: - job-build - job-cancel parameters: @@ -18,13 +18,16 @@ name: ANDROID_BUILD_CONFIG default: '' - string: + name: KERNEL_BUILD_CONFIG + default: '' + - string: name: MANIFEST_BRANCH default: '' - string: name: TARGET_PRODUCT default: "" disabled: false - node: docker-bionic-aosp + node: docker-focal-aosp display-name: 'Jobs for pure aosp builds' concurrent: true wrappers: @@ -33,24 +36,27 @@ name: '#${BUILD_NUMBER}${PROPFILE,file="wrappers_parameters",property="WRAPPER_BUILD_NAME"}' - timeout: timeout: 900 + # needed to publish to snapshots + - credentials-binding: + - text: + credential-id: snapshots-api-key + variable: PUBLISH_KEY builders: - shell: | #!/bin/bash -ex - #change to use python3 by default - if ! python --version|grep 3; then - sudo rm -fv /usr/bin/python && sudo ln -s /usr/bin/python3 /usr/bin/python - fi sudo apt-get update - sudo apt-get install -y --allow-change-held-packages make bison git gperf libxml2-utils python-mako zip time python-requests genisoimage patch mtools python3-pip libssl-dev - - wget --no-check-certificate https://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u162-b12-1_amd64.deb \ - https://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre_8u162-b12-1_amd64.deb \ - https://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk_8u162-b12-1_amd64.deb - - sudo dpkg -i --force-all *.deb + # Here is for packages not listed by the source.android.com site below. + # But the following packages might not be really necessary, + # as the docker image for docker-focal-aosp labelled nodes is linaro/jenkins-amd64-ubuntu:focal + # which is defined here: https://git.linaro.org/infrastructure/ci-yadp-builder.git/tree/docker_templates_aosp_amd64.yml#n2 + # And the packages listed here might be already defined there. + sudo apt-get install -y --allow-change-held-packages wget sudo python3 python-is-python3 openjdk-11-jdk-headless java -version + ## https://source.android.com/docs/setup/start/requirements#hardware-requirements + sudo apt-get install -y --allow-change-held-packages git-core gnupg flex bison build-essential zip curl zlib1g-dev libc6-dev-i386 libncurses5 x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig + mkdir -p ${HOME}/bin curl https://storage.googleapis.com/git-repo-downloads/repo > ${HOME}/bin/repo chmod a+x ${HOME}/bin/* @@ -75,6 +81,13 @@ - shell: !include-raw: - android/linaro-publisher.sh + - shell: | + #!/bin/bash -ex + BUILD_ROOT="${BUILD_ROOT:-/home/buildslave/srv/aosp-public}" + + rm -fr "${BUILD_ROOT}/build/aosp-${BUILD_NUMBER}" + rm -fr "${BUILD_ROOT}/build/kernel-${BUILD_NUMBER}" + rm -fr "${BUILD_ROOT}/dist-${BUILD_NUMBER}" publishers: - archive: artifacts: '*.xml,*.json' @@ -86,4 +99,4 @@ - fingerprint: files: 'build/fingerprints/*' - email: - recipients: 'yongqin.liu@linaro.org' + recipients: 'yongqin.liu@linaro.org sumit.semwal@linaro.org' |