diff options
author | Luis Machado <luis.machado@linaro.org> | 2019-01-15 00:11:14 -0200 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2019-01-30 17:00:12 +0000 |
commit | 5b161fd9d9b7137354e51eb1573afa94ede83a76 (patch) | |
tree | 74f9e13d2917eb95a0ab94edf267b0f9aa83d284 /trigger-private-ci-job-configs.yaml | |
parent | aed163a84ee8adbcd76522149cb11778a51b3369 (diff) |
Add generic private CI job trigger
Add a new job that serves as an example for how the private CI mechanism
works. Additional jobs can then be created based on this same layout.
2019-01-29 Luis Machado <luis.machado@linaro.org>
* trigger-private-ci-job-configs.yaml: New job.
* trigger-private-ci-job-configs: New directory.
Change-Id: Ib336230ede91a8966f9b7667a6bfd17b97ec311f
Signed-off-by: Luis Machado <luis.machado@linaro.org>
Diffstat (limited to 'trigger-private-ci-job-configs.yaml')
-rw-r--r-- | trigger-private-ci-job-configs.yaml | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/trigger-private-ci-job-configs.yaml b/trigger-private-ci-job-configs.yaml new file mode 100644 index 00000000..5add9719 --- /dev/null +++ b/trigger-private-ci-job-configs.yaml @@ -0,0 +1,71 @@ +- job: + name: trigger-private-ci-job-configs + project-type: freestyle + defaults: global + properties: + - authorization: + anonymous: + - job-discover + linaro: + - job-build + - job-read + - job-extended-read + - job-configure + - job-cancel + - build-discarder: + days-to-keep: 30 + num-to-keep: 200 + disabled: false + node: master + display-name: 'Trigger for private CI jobs' + triggers: + - gerrit: + server-name: 'dev-private-review.linaro.org' + trigger-on: + - change-merged-event + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'ci/job/configs' + branches: + - branch-pattern: 'master' + wrappers: + - timestamps + - credentials-binding: + - text: + credential-id: JJB_USER + variable: JJB_USER + - credentials-binding: + - text: + credential-id: JJB_PASSWORD + variable: JJB_PASSWORD + - credentials-binding: + - text: + credential-id: LAVA_USER + variable: LAVA_USER + - credentials-binding: + - text: + credential-id: LAVA_TOKEN + variable: LAVA_TOKEN + - credentials-binding: + - text: + credential-id: DEV_PRIVATE_KEY + variable: DEV_PRIVATE_KEY + - credentials-binding: + - text: + credential-id: AUTH_TOKEN + variable: AUTH_TOKEN + - ssh-agent-credentials: + users: + - '768c1ba1-6052-4b97-a531-7e4fabda6979' + builders: + - shell: | + #!/bin/bash -e + echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt + - build-name-setter: + name: 'version.txt' + file: true + - shell: + !include-raw: trigger-private-ci-job-configs/poll-jobs.sh + publishers: + - email: + recipients: 'fathi.boudra@linaro.org ben.copeland@linaro.org' |