blob: 918da6e1882e79d9ff7f914e36b579b7fb078ad8 [file] [log] [blame]
Benjamin Copelanda5ea6482020-07-22 16:11:34 +01001- job:
2 name: trigger-ci-job-configs-next
3 project-type: freestyle
4 defaults: global
5 properties:
6 - authorization:
7 anonymous:
8 - job-discover
Benjamin Copelanda5ea6482020-07-22 16:11:34 +01009 - job-read
10 - job-extended-read
11 - build-discarder:
12 days-to-keep: 30
13 num-to-keep: 200
14 disabled: false
Saheer Babudf0619a2025-06-02 15:44:32 +010015 node: jjb
Benjamin Copelanda5ea6482020-07-22 16:11:34 +010016 display-name: 'CI job configs deployment (Next)'
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 - change-merged-event
33 projects:
34 - project-compare-type: 'PLAIN'
35 project-pattern: 'next/ci/tf-ci-scripts'
36 branches:
37 - branch-pattern: 'master'
38 - project-compare-type: 'PLAIN'
39 project-pattern: 'next/ci/tf-m-job-configs'
40 branches:
41 - branch-pattern: 'master'
42 - project-compare-type: 'PLAIN'
43 project-pattern: 'next/ci/tf-a-job-configs'
44 branches:
45 - branch-pattern: 'master'
46 - project-compare-type: 'PLAIN'
47 project-pattern: 'next/ci/hafnium-job-configs'
48 branches:
49 - branch-pattern: 'master'
50 silent-start: true
51 wrappers:
52 - timestamps
53 - credentials-binding:
54 - text:
55 credential-id: JJB_USER
56 variable: JJB_USER
57 - credentials-binding:
58 - text:
59 credential-id: JJB_PASSWORD
60 variable: JJB_PASSWORD
61 - credentials-binding:
62 - text:
63 credential-id: AUTH_TOKEN
64 variable: AUTH_TOKEN
65 builders:
66 - shell: |
67 #!/bin/bash -e
68 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
69 - build-name-setter:
70 name: 'version.txt'
71 file: true
72 - shell: |
73 #!/bin/bash
74
Arthur She5ea8eab2024-04-05 13:56:05 -070075 set -ex
Benjamin Copelanda5ea6482020-07-22 16:11:34 +010076
77 echo ""
78 echo "########################################################################"
79 echo " Gerrit Environment"
80 env |grep '^GERRIT'
81 echo "########################################################################"
82
83 cd configs/
84
85 export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
86 export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
87 jenkins-jobs --version
Arthur She5ea8eab2024-04-05 13:56:05 -070088 git clone "https://review.trustedfirmware.org/next/ci/tf-ci-scripts"
89 python3 tf-ci-scripts/ci/run-jjb.py
Benjamin Copelanda5ea6482020-07-22 16:11:34 +010090 publishers:
91 - email:
Paul Sokolovsky440d1e82023-06-17 08:02:58 +030092 recipients: 'ben.copeland@linaro.org kelley.spoon@linaro.org paul.sokolovsky@linaro.org fathi.boudra@linaro.org'