blob: 8b1bc21997bca416e40bd924e28a086583093818 [file] [log] [blame]
Lisa Nguyen74cc5c22019-01-07 12:58:37 -08001- job:
2 name: android-hikey960-linaro-4.14-pmwg
3 project-type: freestyle
4 defaults: global
5 properties:
6 - authorization:
7 anonymous:
8 - job-read
9 - job-extended-read
10 - job-workspace
Benjamin Copeland9dc2eb82022-10-11 12:40:33 +010011 everyone-flat:
Lisa Nguyen74cc5c22019-01-07 12:58:37 -080012 - job-read
13 - job-extended-read
14 - job-build
15 - job-cancel
16 - build-discarder:
17 days-to-keep: 60
18 num-to-keep: 60
19 parameters:
20 - string:
21 name: KERNEL_BRANCH
22 default: 'android-hikey-linaro-4.14-pmwg'
23 - string:
24 name: KERNEL_DESCRIBE
25 - string:
26 name: SRCREV_kernel
27 - string:
28 name: REFERENCE_BUILD_URL
29 default: 'https://snapshots.linaro.org/96boards/hikey960/linaro/aosp-master/749/'
30 - string:
31 name: PUB_DEST
32 default: 'android/pmwg/${JOB_NAME}/${BUILD_NUMBER}'
33 - string:
34 name: DEFCONFIG
35 default: 'hikey960_defconfig'
36 - string:
37 name: DEVICE_TYPE
38 default: 'hi960-hikey'
39 - string:
40 name: PUB_DEST
41 default: 'android/pmwg/${JOB_NAME}/${BUILD_NUMBER}'
42 - string:
43 name: LAVA_SERVER
44 default: 'https://pmwg.validation.linaro.org/RPC2/'
45 - string:
46 name: QA_SERVER
47 default: 'https://qa-reports.linaro.org'
48 - string:
49 name: QA_SERVER_PROJECT
50 default: 'power'
51 - string:
52 name: QA_SERVER_TEAM
53 default: 'pmwg'
54 disabled: false
55 node: docker-xenial-aosp
56 display-name: 'PMWG Android 4.14 on HiKey960'
57 scm:
58 - git:
59 url: https://git.linaro.org/power/android.git
60 refspec: +refs/heads/${KERNEL_BRANCH}:refs/remotes/origin/${KERNEL_BRANCH}
61 name: origin
62 branches:
63 - origin/${KERNEL_BRANCH}
64 skip-tag: true
65 shallow-clone: true
66 wipe-workspace: false
67 wrappers:
68 - timestamps
69 - build-name:
70 name: '#${BUILD_NUMBER}-${GIT_REVISION,length=12}'
71 - timeout:
72 timeout: 500
73 - credentials-binding:
74 - text:
75 credential-id: QA_REPORTS_TOKEN
76 variable: QA_REPORTS_TOKEN
77 builders:
78 - shell:
79 !include-raw: android-hikey-linaro-4.14-pmwg/builders.sh
80 - linaro-publish-token
81 - shell: |
82 #!/bin/bash
83
84 # Required for Mali binaries
85 wget -q https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/android-lcr/hikey/build-info/aosp-master-template.txt -O out/BUILD-INFO.txt
86
87 # Publish
88 test -d ${HOME}/bin || mkdir ${HOME}/bin
89 wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
Benjamin Copeland6f81d052019-11-05 14:45:47 +000090 time python3 ${HOME}/bin/linaro-cp.py \
Lisa Nguyen74cc5c22019-01-07 12:58:37 -080091 --server ${PUBLISH_SERVER} \
92 --build-info out/BUILD-INFO.txt \
93 --link-latest \
94 out/ ${PUB_DEST}
95 - shell:
96 !include-raw: android-hikey-linaro-4.14-pmwg/submit_for_testing.sh
97 publishers:
98 - logparser:
Fathi Boudrae86882b2019-03-22 14:15:21 +020099 parse-rules: '/var/jenkins_home/userContent/android.parse'
Lisa Nguyen74cc5c22019-01-07 12:58:37 -0800100 unstable-on-warning: false
101 fail-on-error: false
102 - fingerprint:
103 files: 'build/fingerprints/*'
104 - groovy-postbuild:
105 script:
106 !include-raw: android-hikey-linaro-4.14-pmwg/postbuild.groovy
107 - email-ext:
108 recipients: 'private-pmwg@lists.linaro.org, vishal.bhoj@linaro.org, fathi.boudra@linaro.org'
109 content-type: text
110 subject: '[Jenkins] Build HiKey960 (${WARNINGS}/${ERRORS}): ${GIT_BRANCH} ${GIT_REVISION,length=12}'
111 body: |
112 Project: ${PROJECT_NAME}
113 Build number: ${BUILD_NUMBER}
114 Build status: ${BUILD_STATUS}
115 Build URL: ${BUILD_URL}
116 Build location: ${PUBLISH_SERVER}${PUB_DEST}
117 Console output: ${BUILD_URL}consoleText
118 Parsed warnings/errors: ${BUILD_URL}parsed_console
119 Git branch: ${GIT_BRANCH}
120 Git commit: ${GIT_COMMIT}
121
122 ${GIT_URL}/commit/?h=${KERNEL_BRANCH}&id=${GIT_COMMIT}
123
124 Errors:
125 ${BUILD_LOG_REGEX, regex="^.*? error: .*?$", linesBefore=0, linesAfter=2, showTruncatedLines=false}
126
127 Warnings:
128 ${BUILD_LOG_REGEX, regex="^.*? warning: .*?$", linesBefore=0, linesAfter=2, showTruncatedLines=false}
129 attach-build-log: true
130 always: true