blob: aa9a5a768ba64557848255b0fc29cba58249520f [file] [log] [blame]
Fathi Boudra2ad07962017-03-30 12:49:08 +03001- job:
2 name: ci-dockerfiles-deployment
3 project-type: matrix
4 defaults: global
5 properties:
6 - authorization:
7 anonymous:
8 - job-discover
Benjamin Copeland9dc2eb82022-10-11 12:40:33 +01009 everyone-flat:
Fathi Boudra2ad07962017-03-30 12:49:08 +030010 - job-read
11 - job-extended-read
12 - build-discarder:
13 days-to-keep: 90
14 num-to-keep: 200
Riku Voipiob517cf32020-05-27 13:51:17 +030015 - build-blocker:
16 use-build-blocker: true
17 blocking-jobs:
Riku Voipio6901a072021-12-10 16:23:09 +020018 - "ci-docker.*"
Riku Voipiob517cf32020-05-27 13:51:17 +030019 block-level: 'NODE'
Fathi Boudra2ad07962017-03-30 12:49:08 +030020 disabled: false
Kelley Spoon083a72b2022-04-26 07:05:14 -050021 node: master
Maxim Kuvyrkovc2a13882017-06-16 10:52:38 +000022 concurrent: false
Fathi Boudra2ad07962017-03-30 12:49:08 +030023 display-name: 'CI Dockerfiles build/publish deployment'
Riku Voipiob2ddea32019-02-19 13:45:30 +020024 scm:
25 - git:
26 url: https://review.linaro.org/${GERRIT_PROJECT}
27 refspec: ${GERRIT_REFSPEC}
28 branches:
29 - ${GERRIT_BRANCH}
30 skip-tag: true
31 clean:
32 before: true
33 choosing-strategy: gerrit
34 basedir: dockerfiles
Fathi Boudra2ad07962017-03-30 12:49:08 +030035 triggers:
36 - gerrit:
37 server-name: 'review.linaro.org'
38 trigger-on:
39 - change-merged-event
40 projects:
41 - project-compare-type: 'PLAIN'
42 project-pattern: 'ci/dockerfiles'
43 branches:
Maxim Kuvyrkovcfd904a2017-11-09 06:52:38 +000044 - branch-compare-type: 'PLAIN'
45 branch-pattern: 'master'
46 - branch-compare-type: 'ANT'
47 branch-pattern: 'tcwg**'
Fathi Boudra2ad07962017-03-30 12:49:08 +030048 silent-start: true
49 axes:
50 - axis:
51 type: slave
52 name: label
53 values:
54 - build-amd64
55 - build-arm64
56 execution-strategy:
57 sequential: false
58 wrappers:
59 - timestamps
Fathi Boudra2ad07962017-03-30 12:49:08 +030060 - credentials-binding:
61 - text:
62 credential-id: DOCKER_AUTH
63 variable: DOCKER_AUTH
Fathi Boudra2ad07962017-03-30 12:49:08 +030064 builders:
65 - shell: |
66 #!/bin/bash -e
Kelley Spoonfbfc8432022-05-06 12:47:39 -050067 curl -L -o ${WORKSPACE}/config.json https://ci.linaro.org/userContent/config.json --fail
Laurent Alfonsi6a77a7c2022-05-03 13:15:43 +020068 - shell: |
69 #!/bin/bash -e
Fathi Boudra2ad07962017-03-30 12:49:08 +030070 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
71 - build-name-setter:
72 name: 'version.txt'
73 file: true
74 - shell:
75 !include-raw: ci-dockerfiles-deployment/builders.sh
Riku Voipioe70311c2019-10-31 15:24:43 +020076 - shell:
77 !include-raw: ci-dockerfiles-deployment/publish.sh
Fathi Boudra2ad07962017-03-30 12:49:08 +030078 publishers:
Riku Voipio0204fcb2019-11-05 10:41:31 +020079 - trigger:
80 project: 'ci-dockerslaves-cleanup'
Fathi Boudra2ad07962017-03-30 12:49:08 +030081 - email:
Riku Voipiob2ddea32019-02-19 13:45:30 +020082 recipients: linaro-infrastructure-errors@lists.linaro.org