blob: 87505ecb3b8a898dbc3d2885f96779d1604ebc67 (
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
|
- job:
name: linaro-art-build-metrics
project-type: freestyle
defaults: global
properties:
- authorization:
anonymous:
- job-discover
linaro-android-builders:
- job-build
- job-read
- job-extended-read
- job-workspace
linaro-art:
- job-build
- job-read
- job-extended-read
- job-workspace
- build-discarder:
days-to-keep: 60
num-to-keep: 60
disabled: false
node: docker-utopic-art
display-name: 'ART: Build Metrics'
concurrent: true
wrappers:
- timestamps
- timeout:
timeout: 200
- credentials-binding:
- text:
credential-id: ART_METRICS_TOKEN
variable: ART_METRICS_TOKEN
builders:
- shell: |
#!/bin/bash
rm -rf art-build-tests android
#set -xe
git clone git://git.linaro.org/people/vishal.bhoj/art-build-tests.sh.git art-build-tests
cd art-build-tests/job-metrics/
sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y xml-twig-tools bc
. ./metrics.sh ${ART_METRICS_TOKEN}
cat results.txt
publishers:
- email-ext:
recipients: 'linaro-art@linaro.org'
content-type: text
subject: 'Build Time statistics for ART CI Jobs'
body: |
Build URL: ${PROJECT_URL}${BUILD_NUMBER}/
Full log: ${PROJECT_URL}${BUILD_NUMBER}/consoleText
${BUILD_LOG_REGEX, regex=".*Build Time.*", linesBefore=0, linesAfter=0, showTruncatedLines=false}
always: true
|