blob: 5f571616ef8e1547743e5db8132bba550b27c295 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
- job:
name: lkft-aosp-master-x15
project-type: freestyle
defaults: global
logrotate:
daysToKeep: 60
numToKeep: 60
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
linaro:
- job-build
- job-cancel
parameters:
- string:
name: BUILD_CONFIG_FILENAME
default: 'aosp-master-x15'
- string:
name: TOOLCHAIN_NAME
default: 'gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf'
- string:
name: TOOLCHAIN_URL
default: 'https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz'
- string:
name: CROSS_COMPILE
default: 'gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-'
- string:
name: CTS_URL
default: 'http://testdata.linaro.org/lkft/aosp-stable/android/android-cts/aosp-arm64-userdebug/32/master'
- string:
name: VTS_URL
default: 'http://testdata.linaro.org/lkft/aosp-stable/aosp-master-throttled/6498268/test_suites_arm64'
disabled: true
node: docker-xenial-aosp
display-name: 'DELETE ME'
concurrent: true
triggers:
- timed : 'H 0 * * 1-5'
wrappers:
- timestamps
- timeout:
timeout: 900
- credentials-binding:
- text:
credential-id: QA_REPORTS_TOKEN
variable: QA_REPORTS_TOKEN
- text:
credential-id: ARTIFACTORIAL_TOKEN
variable: ARTIFACTORIAL_TOKEN
builders:
- shell: |
#!/bin/bash -ex
sudo apt-get update
sudo apt-get install -y --allow-change-held-packages make gcc-4.9-multilib bison git gperf libxml2-utils python-mako zip time python-requests genisoimage patch mtools python-pip pxz 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
java -version
mkdir -p ${HOME}/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ${HOME}/bin/repo
chmod a+x ${HOME}/bin/*
git config --global user.email "ci_notify@linaro.org"
git config --global user.name "Linaro CI"
- shell:
!include-raw:
- lkft/x15-aosp/lkft-aosp-master-x15.sh
- inject:
properties-file: publish_parameters
- linaro-publish-token
- shell:
!include-raw:
- android/linaro-publisher.sh
- inject:
properties-file: publish_parameters
- shell: |
# Install ruamel.yaml==0.16.13
pip install --user --force-reinstall ruamel.yaml==0.16.13
pip install --user --force-reinstall Jinja2
export PUB_DEST=android/lkft/lkft-aosp-master-x15/${BUILD_NUMBER}
export DOWNLOAD_URL=http://snapshots.linaro.org/${PUB_DEST}
export REFERENCE_BUILD_URL=http://snapshots.linaro.org/${PUB_DEST}
export TEST_METADATA_TOOLCHAIN=${TOOLCHAIN_NAME}
export KERNEL_REPO=https://android.googlesource.com/kernel/omap
export ANDROID_VERSION=aosp-master-$(date --iso-8601)
export TEST_VTS_URL=${VTS_URL}
export TEST_CTS_URL=${CTS_URL}
export TEST_VTS_VERSION=$(echo $VTS_URL | awk -F"/" '{print $(NF-2) "#" $(NF-1)}')
export TEST_CTS_VERSION=$(echo $CTS_URL | awk -F"/" '{print $(NF-1) "#" $(NF-2)}')
TEST_DEVICE_TYPE=x15
TEST_LAVA_SERVER=https://lkft.validation.linaro.org/RPC2/
TEST_QA_SERVER="https://qa-reports.linaro.org"
QA_SERVER_TEAM="android-lkft"
rm -rf configs
git clone --depth 1 http://git.linaro.org/ci/job/configs.git
# update templates to use the new image names
ANDROID_IMAGES="boot.img.xz vbmeta.img.xz super.img.xz userdata.img.xz recovery.img.xz"
# submit jobs for x15 4.19 kernel build
# reset the changes done before
cd configs && git reset --hard && cd -
export KERNEL_DESCRIBE=${KERNEL_DESCRIBE_X15_4_19}
export KERNEL_COMMIT=${KERNEL_DESCRIBE_X15_4_19}
export KERNEL_BRANCH="android-beagle-x15-4.19"
QA_BUILD_VERSION=${KERNEL_VERSION_X15_4_19}-${KERNEL_DESCRIBE_X15_4_19}-${BUILD_NUMBER}
TEST_QA_SERVER_PROJECT="4.19-master-x15"
# update templates to use the new image names
for f in ${ANDROID_IMAGES}; do
sed -i "s|${f}|4.19-${f}|" configs/lkft/lava-job-definitions/common/devices/x15
done
python configs/openembedded-lkft/submit_for_testing.py \
--device-type ${TEST_DEVICE_TYPE} \
--build-number ${BUILD_NUMBER} \
--lava-server ${TEST_LAVA_SERVER} \
--qa-server ${TEST_QA_SERVER} \
--qa-server-team ${QA_SERVER_TEAM} \
--qa-server-project ${TEST_QA_SERVER_PROJECT} \
--git-commit ${QA_BUILD_VERSION} \
--testplan-path configs/lkft/lava-job-definitions/common \
--test-plan template-boot.yaml template-vts-kernel.yaml template-cts.yaml \
--quiet
publishers:
- archive:
artifacts: '*.xml,*.json'
latest-only: true
- logparser:
parse-rules: '/var/jenkins_home/userContent/android.parse'
unstable-on-warning: false
fail-on-error: false
- fingerprint:
files: 'build/fingerprints/*'
- email:
recipients: 'tom.gall@linaro.org yongqin.liu@linaro.org praneeth.bajjuri@linaro.org'
|