blob: d44b52bd1af729d1dbcec59b2d9e390232d6c49a [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
15 node: master
16 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'
Arthur She1199a4f2022-11-14 22:19:56 -080050 - project-compare-type: 'PLAIN'
51 project-pattern: 'next/ci/mbed-tls-job-configs'
52 branches:
53 - branch-pattern: 'master'
Benjamin Copelanda5ea6482020-07-22 16:11:34 +010054 silent-start: true
55 wrappers:
56 - timestamps
57 - credentials-binding:
58 - text:
59 credential-id: JJB_USER
60 variable: JJB_USER
61 - credentials-binding:
62 - text:
63 credential-id: JJB_PASSWORD
64 variable: JJB_PASSWORD
65 - credentials-binding:
66 - text:
67 credential-id: AUTH_TOKEN
68 variable: AUTH_TOKEN
69 builders:
70 - shell: |
71 #!/bin/bash -e
72 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
73 - build-name-setter:
74 name: 'version.txt'
75 file: true
76 - shell: |
77 #!/bin/bash
78
Arthur She5ea8eab2024-04-05 13:56:05 -070079 set -ex
Benjamin Copelanda5ea6482020-07-22 16:11:34 +010080
81 echo ""
82 echo "########################################################################"
83 echo " Gerrit Environment"
84 env |grep '^GERRIT'
85 echo "########################################################################"
86
87 cd configs/
88
89 export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
90 export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
91 jenkins-jobs --version
Arthur She5ea8eab2024-04-05 13:56:05 -070092 git clone "https://review.trustedfirmware.org/next/ci/tf-ci-scripts"
93 python3 tf-ci-scripts/ci/run-jjb.py
Benjamin Copelanda5ea6482020-07-22 16:11:34 +010094 publishers:
95 - email:
Paul Sokolovsky440d1e82023-06-17 08:02:58 +030096 recipients: 'ben.copeland@linaro.org kelley.spoon@linaro.org paul.sokolovsky@linaro.org fathi.boudra@linaro.org'