- 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:
- SOURCE_PROJECT_NAME - Jenkins project name
- SOURCE_BUILD_NUMBER - Jenkins build number
- LAVA_JOB_IDS - comma separated list of LAVA job IDs
- ART_URL - URL of the API endpoing of art-reports
Optionally the following variables might be set:
- SOURCE_BRANCH_NAME - branch name of the manifest (for AOSP builds)
- SOURCE_GERRIT_CHANGE_NUMBER
- SOURCE_GERRIT_PATCHSET_NUMBER
- SOURCE_GERRIT_CHANGE_URL
- GERRIT_CHANGE_ID
'
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'