diff options
author | Riku Voipio <riku.voipio@linaro.org> | 2019-10-31 15:24:43 +0200 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2019-11-04 10:48:11 +0200 |
commit | e70311ced672eb022ae14bf26ddbb971564df969 (patch) | |
tree | cacb7ba37c00a75443ca840ec1c911efa0b89c8a /ci-dockerfiles-sanity-check.yaml | |
parent | 2755004818165d82df4a365cc34ee4f490f88871 (diff) |
ci-dockerfiles-sanity-check: new job
just build the docker images, but don't push. To be used
for gerrit reviews.
This shares the existing docker image build logic, and splits
pushing to dockerhub upload to new script (publish.sh). Alternative
script (report.sh) is used when just reporting.
Change-Id: I937aa1eafc3842b4fbfc23374478e45acbe593e1
Diffstat (limited to 'ci-dockerfiles-sanity-check.yaml')
-rw-r--r-- | ci-dockerfiles-sanity-check.yaml | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/ci-dockerfiles-sanity-check.yaml b/ci-dockerfiles-sanity-check.yaml new file mode 100644 index 00000000..bf3a88f8 --- /dev/null +++ b/ci-dockerfiles-sanity-check.yaml @@ -0,0 +1,77 @@ +- job: + name: ci-dockerfiles-sanity-check + project-type: matrix + defaults: global + properties: + - authorization: + anonymous: + - job-discover + linaro: + - job-read + - job-extended-read + - build-discarder: + days-to-keep: 90 + num-to-keep: 200 + disabled: false + node: master + concurrent: false + display-name: 'CI Dockerfiles sanity check' + scm: + - git: + url: https://review.linaro.org/${GERRIT_PROJECT} + refspec: ${GERRIT_REFSPEC} + branches: + - ${GERRIT_BRANCH} + skip-tag: true + clean: + before: true + choosing-strategy: gerrit + basedir: dockerfiles + triggers: + - gerrit: + server-name: 'review.linaro.org' + trigger-on: + - patchset-created-event + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'ci/dockerfiles' + branches: + - branch-compare-type: 'PLAIN' + branch-pattern: 'master' + - branch-compare-type: 'ANT' + branch-pattern: 'tcwg**' + silent-start: true + axes: + - axis: + type: slave + name: label + values: + - build-amd64 + - build-arm64 + - build-armhf + execution-strategy: + sequential: false + wrappers: + - timestamps + - copy-to-slave: + includes: + - config.json + relative-to: 'somewhereElse' + - ssh-agent-credentials: + # tcwg-buildslave user id to clone dev-private-git.l.o/tcwg/llvm-config repo for *-tcwg-llvmbot-* images. + users: + - 'e0958a95-204f-4c14-a66c-5e2be6c5d50a' + 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: ci-dockerfiles-deployment/builders.sh + - shell: + !include-raw: ci-dockerfiles-deployment/report.sh + publishers: + - email: + recipients: linaro-infrastructure-errors@lists.linaro.org |