blob: 13e0acf272ca4ee0e145f1a54c885a6ca912ff17 [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
9 linaro:
10 - job-read
11 - job-extended-read
12 - build-discarder:
13 days-to-keep: 30
14 num-to-keep: 200
15 disabled: false
16 node: master
17 display-name: 'CI job configs deployment (Next)'
18 scm:
19 - git:
20 url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
21 refspec: ${GERRIT_REFSPEC}
22 branches:
23 - ${GERRIT_BRANCH}
24 skip-tag: true
25 clean:
26 before: true
27 choosing-strategy: gerrit
28 basedir: configs
29 triggers:
30 - gerrit:
31 server-name: 'review.trustedfirmware.org'
32 trigger-on:
33 - change-merged-event
34 projects:
35 - project-compare-type: 'PLAIN'
36 project-pattern: 'next/ci/tf-ci-scripts'
37 branches:
38 - branch-pattern: 'master'
39 - project-compare-type: 'PLAIN'
40 project-pattern: 'next/ci/tf-m-job-configs'
41 branches:
42 - branch-pattern: 'master'
43 - project-compare-type: 'PLAIN'
44 project-pattern: 'next/ci/tf-a-job-configs'
45 branches:
46 - branch-pattern: 'master'
47 - project-compare-type: 'PLAIN'
48 project-pattern: 'next/ci/hafnium-job-configs'
49 branches:
50 - branch-pattern: 'master'
51 silent-start: true
52 wrappers:
53 - timestamps
54 - credentials-binding:
55 - text:
56 credential-id: JJB_USER
57 variable: JJB_USER
58 - credentials-binding:
59 - text:
60 credential-id: JJB_PASSWORD
61 variable: JJB_PASSWORD
62 - credentials-binding:
63 - text:
64 credential-id: AUTH_TOKEN
65 variable: AUTH_TOKEN
66 builders:
67 - shell: |
68 #!/bin/bash -e
69 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
70 - build-name-setter:
71 name: 'version.txt'
72 file: true
73 - shell: |
74 #!/bin/bash
75
76 set -e
77
78 echo ""
79 echo "########################################################################"
80 echo " Gerrit Environment"
81 env |grep '^GERRIT'
82 echo "########################################################################"
83
84 cd configs/
85
86 export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
87 export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
88 jenkins-jobs --version
Benjamin Copeland512cf722020-08-11 17:43:49 +010089 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
Benjamin Copelanda5ea6482020-07-22 16:11:34 +010090 python ci/run-jjb.py
91 publishers:
92 - email:
93 recipients: 'ben.copeland@linaro.org riku.voipio@linaro.org kelley.spoon@linaro.org fathi.boudra@linaro.org'