blob: 1b61f6ab1700d6d102d24f14fb2fa0915a0ea048 [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:
12 days-to-keep: 30
13 num-to-keep: 30
14 disabled: false
15 node: master
16 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'
35 project-pattern: 'mbedtls/tf-ci-scripts'
36 branches:
37 - branch-pattern: 'master'
38 - project-compare-type: 'PLAIN'
39 project-pattern: 'mbedtls/mbed-tls-job-configs'
40 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
55 set -e
56
57 echo ""
58 echo "########################################################################"
59 echo " Gerrit Environment"
60 env |grep '^GERRIT'
61 echo "########################################################################"
62
63 cd configs/
64
65 mkdir -p ci/ && wget -q https://git.trustedfirmware.org/mbedtls/tf-ci-scripts.git/plain/ci/run-jjb.py -O ci/run-jjb.py
66 # FIXME run-jjb.py was meant to be used for deployment only
67 # use JJB 'test' command instead of 'update' command
68 sed -i "s|update|test|" ci/run-jjb.py
69
70 export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
71 export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
72 jenkins-jobs --version
73 python3 ci/run-jjb.py
74 publishers:
75 - email:
76 recipients: 'ben.copeland@linaro.org kelley.spoon@linaro.org arthur.she@linaro.org'