Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 1 | - job: |
| 2 | name: ci-job-configs-sanity-check |
| 3 | project-type: freestyle |
| 4 | defaults: global |
| 5 | properties: |
| 6 | - authorization: |
| 7 | anonymous: |
| 8 | - job-read |
| 9 | - job-extended-read |
| 10 | - build-discarder: |
| 11 | days-to-keep: 30 |
| 12 | num-to-keep: 30 |
| 13 | disabled: false |
| 14 | node: master |
| 15 | display-name: 'CI job configs sanity check' |
| 16 | scm: |
| 17 | - git: |
| 18 | url: https://review.trustedfirmware.org/${GERRIT_PROJECT} |
| 19 | refspec: ${GERRIT_REFSPEC} |
| 20 | branches: |
| 21 | - ${GERRIT_BRANCH} |
| 22 | skip-tag: true |
| 23 | clean: |
| 24 | before: true |
| 25 | choosing-strategy: gerrit |
| 26 | basedir: configs |
| 27 | triggers: |
| 28 | - gerrit: |
| 29 | server-name: 'review.trustedfirmware.org' |
| 30 | trigger-on: |
| 31 | - patchset-created-event |
| 32 | projects: |
| 33 | - project-compare-type: 'PLAIN' |
Benjamin Copeland | 7377588 | 2019-04-02 10:27:34 +0100 | [diff] [blame] | 34 | project-pattern: 'ci/tf-ci-scripts' |
| 35 | branches: |
| 36 | - branch-pattern: 'master' |
| 37 | - project-compare-type: 'PLAIN' |
| 38 | project-pattern: 'ci/tf-m-job-configs' |
| 39 | branches: |
| 40 | - branch-pattern: 'master' |
| 41 | - project-compare-type: 'PLAIN' |
| 42 | project-pattern: 'ci/tf-a-job-configs' |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 43 | branches: |
| 44 | - branch-pattern: 'master' |
Benjamin Copeland | 771fcaf | 2020-05-05 11:19:34 +0100 | [diff] [blame^] | 45 | - project-compare-type: 'PLAIN' |
Benjamin Copeland | ee421cf | 2020-05-05 11:13:30 +0100 | [diff] [blame] | 46 | project-pattern: 'ci/hafnium-job-configs' |
| 47 | branches: |
| 48 | - branch-pattern: 'master' |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 49 | silent-start: true |
| 50 | wrappers: |
| 51 | - timestamps |
| 52 | builders: |
| 53 | - shell: | |
| 54 | #!/bin/bash -e |
| 55 | echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt |
| 56 | - build-name-setter: |
| 57 | name: 'version.txt' |
| 58 | file: true |
| 59 | - shell: | |
| 60 | #!/bin/bash |
| 61 | |
| 62 | set -e |
| 63 | |
| 64 | echo "" |
| 65 | echo "########################################################################" |
| 66 | echo " Gerrit Environment" |
| 67 | env |grep '^GERRIT' |
| 68 | echo "########################################################################" |
| 69 | |
| 70 | cd configs/ |
| 71 | |
Benjamin Copeland | 7765f22 | 2019-04-02 11:54:08 +0100 | [diff] [blame] | 72 | mkdir -p ci/ && wget -q https://git.trustedfirmware.org/ci/tf-ci-scripts.git/plain/ci/run-jjb.py -O ci/run-jjb.py |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 73 | # FIXME run-jjb.py was meant to be used for deployment only |
| 74 | # use JJB 'test' command instead of 'update' command |
Benjamin Copeland | 7377588 | 2019-04-02 10:27:34 +0100 | [diff] [blame] | 75 | sed -i "s|update|test|" ci/run-jjb.py |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 76 | |
| 77 | export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1) |
| 78 | export GIT_COMMIT=${GERRIT_PATCHSET_REVISION} |
| 79 | jenkins-jobs --version |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 80 | python ci/run-jjb.py |
| 81 | publishers: |
| 82 | - email: |
Fathi Boudra | b9abd88 | 2019-12-04 15:36:38 +0200 | [diff] [blame] | 83 | recipients: 'ben.copeland@linaro.org riku.voipio@linaro.org kelley.spoon@linaro.org fathi.boudra@linaro.org' |