blob: c433f7109bc5d58dfa7f937695b65cb3b50164e8 [file] [log] [blame]
Arthur Sheb786abd2023-07-17 11:01:59 -07001- job:
2 name: ci-job-configs-sanity-check
3 project-type: freestyle
4 defaults: global
5 properties:
6 - authorization:
7 authenticated:
8 - job-read
9 - job-extended-read
10 - job-discover
11 - build-discarder:
Arthur She352bae22023-07-18 07:14:33 -070012 days-to-keep: 35
13 num-to-keep: 35
Arthur Sheb786abd2023-07-17 11:01:59 -070014 disabled: false
Arthur She89766dd2023-07-17 14:02:00 -070015 node: built-in
Arthur Sheb786abd2023-07-17 11:01:59 -070016 display-name: 'CI job configs sanity check'
17 scm:
18 - git:
19 url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
20 refspec: ${GERRIT_REFSPEC}
21 branches:
22 - ${GERRIT_BRANCH}
23 skip-tag: true
24 clean:
25 before: true
26 choosing-strategy: gerrit
27 basedir: configs
28 triggers:
29 - gerrit:
30 server-name: 'review.trustedfirmware.org'
31 trigger-on:
32 - patchset-created-event
33 projects:
34 - project-compare-type: 'PLAIN'
Arthur She04db7ab2023-10-23 11:02:08 -070035 project-pattern: 'ci/mbedtls/tf-ci-scripts'
Arthur Sheb786abd2023-07-17 11:01:59 -070036 branches:
37 - branch-pattern: 'master'
38 - project-compare-type: 'PLAIN'
Arthur She04db7ab2023-10-23 11:02:08 -070039 project-pattern: 'ci/mbedtls/mbed-tls-job-configs'
Arthur Sheb786abd2023-07-17 11:01:59 -070040 branches:
41 - branch-pattern: 'master'
42 silent-start: true
43 wrappers:
44 - timestamps
45 builders:
46 - shell: |
47 #!/bin/bash -e
48 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
49 - build-name-setter:
50 name: 'version.txt'
51 file: true
52 - shell: |
53 #!/bin/bash
54
Arthur She82798462024-04-05 21:29:16 -070055 set -ex
Arthur Sheb786abd2023-07-17 11:01:59 -070056
57 echo ""
58 echo "########################################################################"
59 echo " Gerrit Environment"
60 env |grep '^GERRIT'
61 echo "########################################################################"
62
63 cd configs/
64
Arthur She82798462024-04-05 21:29:16 -070065 git clone https://review.trustedfirmware.org/ci/mbedtls/tf-ci-scripts
Arthur Sheb786abd2023-07-17 11:01:59 -070066 # FIXME run-jjb.py was meant to be used for deployment only
67 # use JJB 'test' command instead of 'update' command
Arthur She82798462024-04-05 21:29:16 -070068 sed -i "s|update|test|" tf-ci-scripts/ci/run-jjb.py
Arthur Sheb786abd2023-07-17 11:01:59 -070069
70 export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
71 export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
72 jenkins-jobs --version
Arthur She82798462024-04-05 21:29:16 -070073 python3 tf-ci-scripts/ci/run-jjb.py
Arthur Sheb786abd2023-07-17 11:01:59 -070074 publishers:
75 - email:
76 recipients: 'ben.copeland@linaro.org kelley.spoon@linaro.org arthur.she@linaro.org'