summaryrefslogtreecommitdiff
path: root/post-build-report.yaml
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-07-15 14:41:53 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-07-15 20:15:29 +0100
commit40341c591608e39c321d96eb159addd5727485bc (patch)
tree7bf17eed590c9d1d2cb117c5557b9beeb226461f /post-build-report.yaml
parentfa1f4a7395b3c447f05a18eb59f8a08fe77f3e0f (diff)
Added support for direct .json submission
Change-Id: I46ceb90b9a897d3f5f07df23a6c50c02b41ba958 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'post-build-report.yaml')
-rw-r--r--post-build-report.yaml20
1 files changed, 16 insertions, 4 deletions
diff --git a/post-build-report.yaml b/post-build-report.yaml
index 932877f..ec70009 100644
--- a/post-build-report.yaml
+++ b/post-build-report.yaml
@@ -7,7 +7,6 @@
<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
- <li>ART_TOKEN - token for art-reports
</ul>
Optionally the following variables might be set:
<ul>
@@ -43,6 +42,14 @@
execution-strategy:
sequential: true
builders:
+ - shell: |
+ #!/bin/bash
+ # Remove old artifacts
+ rm artifacts/pinned-manifest.xml
+ rm artifacts/boot_oat_size*
+ rm artifacts/avg_oat_size*
+ rm artifacts/*.json
+ exit 0
- copyartifact:
project: ${SOURCE_PROJECT_NAME}
filter: 'pinned-manifest.xml'
@@ -67,12 +74,17 @@
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 pinned-manifest.xml
- rm boot_oat_size*
- rm avg_oat_size*
rm -rf pbr
git clone git://git.linaro.org/people/milosz.wasilewski/post-build-report.git pbr
python pbr/post-build-report.py