Benjamin Copeland | 9782c6d | 2020-08-17 12:07:18 +0100 | [diff] [blame] | 1 | - job: |
| 2 | name: ci-yadp-builder-sanity |
| 3 | project-type: freestyle |
| 4 | defaults: global |
| 5 | properties: |
| 6 | - authorization: |
| 7 | anonymous: |
| 8 | - job-read |
| 9 | - job-extended-read |
| 10 | - build-discarder: |
Paul Sokolovsky | 3ac3cd5 | 2023-08-10 22:14:57 +0300 | [diff] [blame] | 11 | days-to-keep: 90 |
Benjamin Copeland | 9782c6d | 2020-08-17 12:07:18 +0100 | [diff] [blame] | 12 | num-to-keep: 30 |
| 13 | disabled: false |
| 14 | node: master |
| 15 | display-name: 'CI YADP config builder sanity check' |
| 16 | triggers: |
| 17 | - gerrit: |
| 18 | server-name: 'review.trustedfirmware.org' |
| 19 | trigger-on: |
| 20 | - patchset-created-event |
| 21 | projects: |
| 22 | - project-compare-type: 'PLAIN' |
| 23 | project-pattern: 'ci/ci-yadp-builder' |
| 24 | branches: |
| 25 | - branch-pattern: 'master' |
| 26 | silent-start: true |
| 27 | wrappers: |
| 28 | - timestamps |
| 29 | - credentials-binding: |
| 30 | - text: |
| 31 | credential-id: JJB_USER |
| 32 | variable: JJB_USER |
| 33 | - text: |
| 34 | credential-id: JJB_PASSWORD |
| 35 | variable: JJB_PASSWORD |
| 36 | builders: |
| 37 | - shell: | |
| 38 | #!/bin/bash -e |
| 39 | echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt |
| 40 | - build-name-setter: |
| 41 | name: 'version.txt' |
| 42 | file: true |
| 43 | - shell: | |
| 44 | #!/bin/bash |
| 45 | |
| 46 | set -e |
| 47 | |
| 48 | echo "" |
| 49 | echo "########################################################################" |
| 50 | echo " Gerrit Environment" |
| 51 | env |grep '^GERRIT' |
| 52 | echo "########################################################################" |
| 53 | |
| 54 | rm -rf ${WORKSPACE}/* |
| 55 | |
| 56 | git clone -b ${GERRIT_BRANCH} --depth 2 https://review.trustedfirmware.org/${GERRIT_PROJECT} |
| 57 | cd * |
| 58 | git fetch https://review.trustedfirmware.org/${GERRIT_PROJECT} ${GERRIT_REFSPEC} |
| 59 | git checkout -q FETCH_HEAD |
| 60 | |
Kelley Spoon | 8622d77 | 2022-04-07 15:46:43 -0500 | [diff] [blame] | 61 | python3 yadp_builder.py --dryrun |
Benjamin Copeland | 9782c6d | 2020-08-17 12:07:18 +0100 | [diff] [blame] | 62 | publishers: |
| 63 | - email: |
| 64 | recipients: 'linaro-infrastructure-errors@lists.linaro.org' |