blob: ff4a804a42293c884bc1d5d8f8b9d501aaeb583b (
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
|
- job:
name: lkft-aosp
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: ANDROID_BUILD_CONFIG
default: ''
- string:
name: MANIFEST_BRANCH
default: ''
- string:
name: TARGET_PRODUCT
default: ""
disabled: false
node: docker-bionic-aosp
display-name: 'Jobs for pure aosp builds'
concurrent: true
wrappers:
- timestamps
- build-name:
name: '#${BUILD_NUMBER}${PROPFILE,file="wrappers_parameters",property="WRAPPER_BUILD_NAME"}'
- timeout:
timeout: 900
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
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"
# set value for the build name
if [ -n "${ANDROID_BUILD_CONFIG}" ]; then
WRAPPER_BUILD_NAME="-${ANDROID_BUILD_CONFIG}"
elif [ -n "${MANIFEST_BRANCH}" ] && [ -n "${TARGET_PRODUCT}" ]; then
WRAPPER_BUILD_NAME="-${MANIFEST_BRANCH}-${TARGET_PRODUCT}"
fi
echo "WRAPPER_BUILD_NAME=${WRAPPER_BUILD_NAME}" > wrappers_parameters
- shell:
!include-raw:
- lkft/common/build-aosp.sh
- inject:
properties-file: publish_parameters
- linaro-publish-token
- shell:
!include-raw:
- android/linaro-publisher.sh
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: 'yongqin.liu@linaro.org'
|