blob: 15aad1a8729bb6a9ff0cdd14e7b1ea5e06c66312 [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'
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
75 set -e
76
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
Benjamin Copeland512cf722020-08-11 17:43:49 +010088 mkdir -p ci/ && wget -q https://git.trustedfirmware.org/next/ci/tf-ci-scripts.git/plain/ci/run-jjb.py -O ci/run-jjb.py
Riku Voipio3dddfdc2021-10-25 09:52:44 +030089 python3 ci/run-jjb.py
Benjamin Copelanda5ea6482020-07-22 16:11:34 +010090 publishers:
91 - email:
92 recipients: 'ben.copeland@linaro.org riku.voipio@linaro.org kelley.spoon@linaro.org fathi.boudra@linaro.org'