blob: be9877fa61ca904e4a711dcb71023b4093dc5982 [file] [log] [blame]
Arthur Sheb786abd2023-07-17 11:01:59 -07001- job:
2 name: trigger-ci-job-configs
3 project-type: freestyle
4 defaults: global
5 properties:
6 - authorization:
7 anonymous:
8 - job-discover
9 authenticated:
10 - job-discover
11 - job-read
12 - job-extended-read
13 - build-discarder:
14 days-to-keep: 30
15 num-to-keep: 200
16 disabled: false
Arthur She89766dd2023-07-17 14:02:00 -070017 node: built-in
Arthur Sheb786abd2023-07-17 11:01:59 -070018 display-name: 'CI job configs deployment'
19 scm:
20 - git:
21 url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
22 refspec: ${GERRIT_REFSPEC}
23 branches:
24 - ${GERRIT_BRANCH}
25 skip-tag: true
26 clean:
27 before: true
28 choosing-strategy: gerrit
29 basedir: configs
30 triggers:
31 - gerrit:
32 server-name: 'review.trustedfirmware.org'
33 trigger-on:
34 - change-merged-event
35 projects:
36 - project-compare-type: 'PLAIN'
Arthur She04db7ab2023-10-23 11:02:08 -070037 project-pattern: 'ci/mbedtls/tf-ci-scripts'
Arthur Sheb786abd2023-07-17 11:01:59 -070038 branches:
39 - branch-pattern: 'master'
40 - project-compare-type: 'PLAIN'
Arthur She04db7ab2023-10-23 11:02:08 -070041 project-pattern: 'ci/mbedtls/mbed-tls-job-configs'
Arthur Sheb786abd2023-07-17 11:01:59 -070042 branches:
43 - branch-pattern: 'master'
44 silent-start: true
45 wrappers:
46 - timestamps
47 - credentials-binding:
48 - text:
49 credential-id: JJB_USER
50 variable: JJB_USER
51 - credentials-binding:
52 - text:
53 credential-id: JJB_PASSWORD
54 variable: JJB_PASSWORD
55 - credentials-binding:
56 - text:
57 credential-id: AUTH_TOKEN
58 variable: AUTH_TOKEN
59 builders:
60 - shell: |
61 #!/bin/bash -e
62 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
63 - build-name-setter:
64 name: 'version.txt'
65 file: true
66 - shell: |
67 #!/bin/bash
68
69 set -e
70
71 echo ""
72 echo "########################################################################"
73 echo " Gerrit Environment"
74 env |grep '^GERRIT'
75 echo "########################################################################"
76
77 cd configs/
78
79 export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
80 export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
81 jenkins-jobs --version
Arthur She04db7ab2023-10-23 11:02:08 -070082 mkdir -p ci/ && wget -q https://git.trustedfirmware.org/ci/mbedtls/tf-ci-scripts.git/plain/ci/run-jjb.py -O ci/run-jjb.py
Arthur Sheb786abd2023-07-17 11:01:59 -070083 python3 ci/run-jjb.py
84 publishers:
85 - email:
86 recipients: 'ben.copeland@linaro.org kelley.spoon@linaro.org arthur.she@linaro.org'