Harrison Mutai | ee250c7 | 2022-08-05 16:28:27 +0100 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-test-result-visualization |
| 3 | node: docker-amd64-tf-a-bionic |
| 4 | project-type: freestyle |
| 5 | concurrent: true |
| 6 | description: >- |
| 7 | Generates a visualization of the test results from the current job. |
| 8 | disabled: false |
| 9 | properties: |
| 10 | - build-discarder: |
| 11 | days-to-keep: 14 |
| 12 | - authorization: |
| 13 | !include: authorization.yaml.inc |
| 14 | parameters: |
| 15 | - string: |
| 16 | name: TF_GERRIT_PROJECT |
| 17 | default: 'TF-A/trusted-firmware-a' |
| 18 | - string: |
| 19 | name: TF_GERRIT_BRANCH |
| 20 | default: 'refs/heads/integration' |
| 21 | - string: |
| 22 | name: TF_GERRIT_REFSPEC |
| 23 | default: '+refs/heads/integration:refs/remotes/origin/integration' |
| 24 | - string: |
| 25 | name: TFTF_GERRIT_PROJECT |
| 26 | default: 'TF-A/tf-a-tests' |
| 27 | - string: |
| 28 | name: TFTF_GERRIT_BRANCH |
| 29 | default: 'refs/heads/master' |
| 30 | - string: |
| 31 | name: TFTF_GERRIT_REFSPEC |
| 32 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 33 | - string: |
| 34 | name: CI_REFSPEC |
| 35 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 36 | - string: |
| 37 | name: TARGET_BUILD |
| 38 | default: 'tf-a-main/1' |
| 39 | description: 'Target build to analyze.' |
| 40 | builders: |
Harrison Mutai | 92fbadd | 2022-10-06 11:28:48 +0100 | [diff] [blame] | 41 | - shell: !include-raw: scripts/clone.sh |
Harrison Mutai | ee250c7 | 2022-08-05 16:28:27 +0100 | [diff] [blame] | 42 | - shell: | |
| 43 | #!/bin/bash |
| 44 | |
| 45 | bash ${WORKSPACE}/tf-a-ci-scripts/script/graphs/tf-main-results.bash \ |
| 46 | "${JENKINS_URL}job/${TARGET_BUILD}" |
| 47 | publishers: |
| 48 | - postbuildscript: |
| 49 | builders: |
| 50 | - role: SLAVE |
| 51 | build-on: |
| 52 | - SUCCESS |
| 53 | - FAILURE |
| 54 | - UNSTABLE |
| 55 | - ABORTED |
| 56 | - NOT_BUILT |
| 57 | build-steps: |
| 58 | - shell: |- |
| 59 | #!/bin/bash -e |
| 60 | export CI_ROOT=${PWD}/tf-a-ci-scripts |
| 61 | bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh" -t |
| 62 | - archive: |
| 63 | artifacts: report.html, tf-a-main*.png, tf-a-main*.csv |
| 64 | - groovy-postbuild: |
| 65 | script: |
| 66 | !include-raw: |
| 67 | - tf-a-ci-gateway/postbuild.groovy |