blob: cbaadedebd14b589befe1af8b5ff45f7bf07b5e3 [file] [log] [blame]
Saheer Babu8be26a92025-06-03 13:09:39 +01001- 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
17 node: jjb
18 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'
37 project-pattern: 'ci/tf-ci-scripts'
38 branches:
39 - branch-pattern: 'master'
40 - project-compare-type: 'PLAIN'
41 project-pattern: 'ci/tf-m-job-configs'
42 branches:
43 - branch-pattern: 'master'
44 - project-compare-type: 'PLAIN'
45 project-pattern: 'ci/tf-a-job-configs'
46 branches:
47 - branch-pattern: 'master'
48 - project-compare-type: 'PLAIN'
49 project-pattern: 'ci/hafnium-job-configs'
50 branches:
51 - branch-pattern: 'master'
52 silent-start: true
53 wrappers:
54 - timestamps
55 - credentials-binding:
56 - text:
57 credential-id: JJB_USER
58 variable: JJB_USER
59 - credentials-binding:
60 - text:
61 credential-id: JJB_PASSWORD
62 variable: JJB_PASSWORD
63 builders:
64 - shell: |
65 #!/bin/bash -e
66 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
67 - build-name-setter:
68 name: 'version.txt'
69 file: true
70 - shell: |
71 #!/bin/bash
72
73 set -e
74
75 echo ""
76 echo "########################################################################"
77 echo " Gerrit Environment"
78 env |grep '^GERRIT'
79 echo "########################################################################"
80
81 cd configs/
82
83 export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
84 export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
85 jenkins-jobs --version
86 git clone "https://review.trustedfirmware.org/ci/tf-ci-scripts"
87 python3 tf-ci-scripts/ci/run-jjb.py
88 publishers:
89 - email:
90 recipients: 'ben.copeland@linaro.org kelley.spoon@linaro.org paul.sokolovsky@linaro.org fathi.boudra@linaro.org'