blob: 56ad87de38ef19c43debcea4558df987633e652b (
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
|
- job:
name: post-build-reports
description: 'This project helps submit build and test results
to reporting tools. It requires the following variables to be set:
<ul>
<li>SOURCE_PROJECT_NAME - Jenkins project name
<li>SOURCE_BUILD_NUMBER - Jenkins build number
<li>LAVA_JOB_IDS - comma separated list of LAVA job IDs
<li>ART_URL - URL of the API endpoing of art-reports
</ul>
Optionally the following variables might be set:
<ul>
<li>SOURCE_BRANCH_NAME - branch name of the manifest (for AOSP builds)
<li>SOURCE_GERRIT_CHANGE_NUMBER
<li>SOURCE_GERRIT_PATCHSET_NUMBER
<li>SOURCE_GERRIT_CHANGE_URL
<li>GERRIT_CHANGE_ID
</ul>'
project-type: freestyle
# wait 5 minutes before starting the build. This allows for source build to complete
quiet-period: 300
defaults: global
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
milosz.wasilewski@linaro.org:
- job-build
- job-cancel
- build-discarder:
days-to-keep: 90
num-to-keep: 500
artifact-num-to-keep: 1
disabled: false
node: master
display-name: 'Post build reports'
execution-strategy:
sequential: true
wrappers:
- timestamps
- credentials-binding:
- text:
credential-id: ART_TOKEN_ART_REPORTS
variable: ART_TOKEN_ART_REPORTS
- credentials-binding:
- text:
credential-id: ART_TOKEN_ANDROID_REPORTS
variable: ART_TOKEN_ANDROID_REPORTS
builders:
- shell: |
#!/bin/bash
rm -f \
artifacts/pinned-manifest.xml \
artifacts/boot_oat_size* \
artifacts/avg_oat_size* \
artifacts/*.json
- copyartifact:
project: ${SOURCE_PROJECT_NAME}
filter: 'pinned-manifest.xml'
target: artifacts
optional: true
flatten: true
which-build: specific-build
build-number: ${SOURCE_BUILD_NUMBER}
- copyartifact:
project: ${SOURCE_PROJECT_NAME}
filter: 'boot_oat_size*'
target: artifacts
optional: true
flatten: true
which-build: specific-build
build-number: ${SOURCE_BUILD_NUMBER}
- copyartifact:
project: ${SOURCE_PROJECT_NAME}
filter: 'avg_oat_time*'
target: artifacts
optional: true
flatten: true
which-build: specific-build
build-number: ${SOURCE_BUILD_NUMBER}
- copyartifact:
project: ${SOURCE_PROJECT_NAME}
filter: '*.json'
target: artifacts
optional: true
flatten: true
which-build: specific-build
build-number: ${SOURCE_BUILD_NUMBER}
- shell: |
#!/bin/bash
# Send to art-reports
rm -rf pbr
git clone git://git.linaro.org/qa/post-build-report.git pbr
python pbr/post-build-report.py
publishers:
- email:
recipients: 'milosz.wasilewski@linaro.org'
|