blob: 54e43cff3907aa25865ebdc0e0023f79f7a18653 (
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
|
- job:
name: trigger-lkft-linaro-hikey
project-type: freestyle
defaults: global
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
android-internal:
- job-build
- job-cancel
- build-discarder:
days-to-keep: 180
num-to-keep: 150
disabled: false
node: triggers
display-name: 'Trigger for changes on aosp hikey kernel'
scm:
- git:
remotes:
- linaro-hikey:
url: https://android-git.linaro.org/git/kernel/hikey-linaro.git
- linux-stable:
url: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
refspec: +refs/heads/linux-4.14.y:refs/remotes/linux-stable/linux-4.14.y +refs/heads/linux-4.19.y:refs/remotes/linux-stable/linux-4.19.y
branches:
- linaro-hikey/android-hikey-linaro-4.14-stable-lkft
- linaro-hikey/android-hikey-linaro-4.19-stable-lkft
skip-tag: true
shallow-clone: false
wipe-workspace: false
triggers:
- pollscm:
cron: 'H H/3 * * *'
wrappers:
- timestamps
- build-name:
name: '#${BUILD_NUMBER}-${PROPFILE,file="properties.txt",property="KERNEL_DESCRIBE"}-${GIT_BRANCH#linaro-hikey/}'
builders:
- shell: |
#!/bin/bash -ex
git clean -fdx
env
MAKE_KERNELVERSION=$(make kernelversion)
KERNEL_BRANCH=${GIT_BRANCH#linaro-hikey/}
KERNEL_DESCRIBE=${MAKE_KERNELVERSION}-${GIT_COMMIT:0:12}
SRCREV_kernel=${GIT_COMMIT}
echo KERNEL_DESCRIBE=${KERNEL_DESCRIBE} > properties.txt
echo KERNEL_BRANCH=${KERNEL_BRANCH} >> properties.txt
params=lkft-${KERNEL_BRANCH}.txt
echo KERNEL_DESCRIBE=${KERNEL_DESCRIBE} >> $params
echo SRCREV_kernel=${SRCREV_kernel} >> $params
echo MAKE_KERNELVERSION=${MAKE_KERNELVERSION} >> $params
echo KERNEL_BRANCH=${KERNEL_BRANCH} >> $params
cat $params
# generate files for the api callback build
f_api_callbacks="all-kernels.txt"
cp -fv $params ${f_api_callbacks}
QA_BUILD_VERSION=${KERNEL_DESCRIBE}
echo "QA_BUILD_VERSION=${QA_BUILD_VERSION}" >> ${f_api_callbacks}
echo "CALLER_JOB_NAME=${JOB_NAME}" >> ${f_api_callbacks}
echo "CALLER_BUILD_NUMBER=${BUILD_NUMBER}" >>${f_api_callbacks}
build_configs_4_14_stable="lkft-hikey-aosp-master-4.14-stable-lkft lkft-hikey960-aosp-master-4.14-stable-lkft lkft-hikey960-android11-4.14-stable-lkft"
build_configs_4_19_stable="lkft-hikey-aosp-master-4.19-stable-lkft lkft-hikey960-aosp-master-4.19-stable-lkft lkft-hikey960-android11-4.19-stable-lkft"
build_configs=""
case "X${KERNEL_BRANCH}" in
"Xandroid-hikey-linaro-4.14-stable-lkft")
build_configs="${build_configs_4_14_stable}"
;;
"Xandroid-hikey-linaro-4.19-stable-lkft")
build_configs="${build_configs_4_19_stable}"
;;
"X*")
build_configs=""
;;
esac
rm -fr params_*.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}
MAKE_KERNELVERSION=${MAKE_KERNELVERSION}
__EOF__
cat ${f_params}
done
- inject:
properties-file: all-kernels.txt
- shell:
!include-raw:
- lkft/common/api-callbacks.sh
- trigger-builds:
- project: lkft-generic-mirror-build
property-file: params_android-hikey-linaro-4.14-stable-lkft_lkft-hikey-aosp-master-4.14-stable-lkft.txt
- project: lkft-generic-mirror-build
property-file: params_android-hikey-linaro-4.14-stable-lkft_lkft-hikey960-aosp-master-4.14-stable-lkft.txt
- project: lkft-generic-mirror-build
property-file: params_android-hikey-linaro-4.14-stable-lkft_lkft-hikey960-android11-4.14-stable-lkft.txt
- project: lkft-generic-mirror-build
property-file: params_android-hikey-linaro-4.19-stable-lkft_lkft-hikey-aosp-master-4.19-stable-lkft.txt
- project: lkft-generic-mirror-build
property-file: params_android-hikey-linaro-4.19-stable-lkft_lkft-hikey960-aosp-master-4.19-stable-lkft.txt
- project: lkft-generic-mirror-build
property-file: params_android-hikey-linaro-4.19-stable-lkft_lkft-hikey960-android11-4.19-stable-lkft.txt
|