blob: 2df26d2acea8ce766e6673605afbbbde09a13e99 (
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
|
- job:
name: trigger-lt-qcom-linux-build
project-type: freestyle
defaults: global
logrotate:
daysToKeep: 30
numToKeep: 30
parameters:
- string:
name: KERNEL_REPO_URL
default: 'https://git.linaro.org/landing-teams/working/qualcomm/kernel.git'
- string:
name: KERNEL_BRANCHES
default: 'release/chromiumos-4.14-r.* release/qcomlt-4.14 alimon/tracking'
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
- job-workspace
linaro-landing-team-qualcomm-personnel:
- job-read
- job-extended-read
- job-build
- job-cancel
disabled: false
node: master
display-name: 'Trigger for Qualcomm LT kernel build'
scm:
- git:
url: https://git.linaro.org/git/landing-teams/working/qualcomm/kernel.git
refspec: +refs/heads/release/*:refs/remotes/origin/release/*
name: origin
branches:
- refs/heads/release/.*
skip-tag: true
shallow-clone: false
wipe-workspace: false
triggers:
- timed: 'H/5 * * * *'
wrappers:
- timestamps
- build-name:
name: '#${BUILD_NUMBER}'
builders:
- shell: |
#!/bin/bash
set -ex
rm -rf configs
git clone --depth 1 http://git.linaro.org/ci/job/configs.git
git fetch --all
set +e
python configs/trigger-lt-qcom-linux-build/get_branch_to_build.py \
> branch_to_build
ret=$?
if [ $ret -ne 0 ]; then
echo "warning: no new kernel branch to build available"
fi
- inject:
properties-file: branch_to_build
- shell: |
#!/bin/bash
set -ex
KERNEL_CONFIGS=defconfig
if echo "${KERNEL_BRANCH}" | grep -q "release/chromiumos-4.14-r.*"; then
KERNEL_CONFIGS=chromiumos-qualcomm
fi
echo "KERNEL_REPO_URL=${KERNEL_REPO_URL}" > build_parameters
echo "KERNEL_BRANCH=${KERNEL_BRANCH}" >> build_parameters
echo "KERNEL_REVISION=${KERNEL_REVISION}" >> build_parameters
echo "KERNEL_CONFIGS=${KERNEL_CONFIGS}" >> build_parameters
echo "ARCH=arm64" >> build_parameters
cat build_parameters
- inject:
properties-file: build_parameters
publishers:
- logparser:
parse-rules: '/var/jenkins_home/userContent/android.parse'
unstable-on-warning: true
fail-on-error: false
- groovy-postbuild:
script:
!include-raw:
- trigger-lt-qcom-linux-build/postbuild.groovy
- trigger-parameterized-builds:
- project:
- 'lt-qcom-linux-build'
condition: SUCCESS
property-file: build_parameters
|