ci-dockerfiles-deployment: Recreate as a freestyle job
Instead of matrix with a single configuration, as it was before.
Similar to the ci-dockerfiles-sanity-check change done before.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Ifd1bdb82780656b67b9b0f52a9f4a0a1319764b0
diff --git a/ci-dockerfiles-deployment.yaml b/ci-dockerfiles-deployment.yaml
new file mode 100644
index 0000000..44f3786
--- /dev/null
+++ b/ci-dockerfiles-deployment.yaml
@@ -0,0 +1,69 @@
+- job:
+ name: ci-dockerfiles-deployment
+ project-type: freestyle
+ defaults: global
+ properties:
+ - authorization:
+ authenticated:
+ - job-read
+ - job-extended-read
+ - job-discover
+ - build-discarder:
+ days-to-keep: 90
+ num-to-keep: 200
+ - build-blocker:
+ use-build-blocker: true
+ blocking-jobs:
+ - "ci-docker*"
+ block-level: 'NODE'
+ disabled: false
+ node: build-amd64
+ concurrent: false
+ display-name: 'CI Dockerfiles build/publish deployment'
+ scm:
+ - git:
+ url: https://review.trustedfirmware.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.trustedfirmware.org'
+ trigger-on:
+ - change-merged-event
+ projects:
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'ci/dockerfiles'
+ branches:
+ - branch-compare-type: 'PLAIN'
+ branch-pattern: 'master'
+ silent-start: true
+ execution-strategy:
+ sequential: false
+ wrappers:
+ - timestamps
+ - credentials-binding:
+ - text:
+ credential-id: DOCKER_AUTH
+ variable: DOCKER_AUTH
+ 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/publish.sh
+ publishers:
+ - trigger:
+ project: 'ci-dockerslaves-cleanup'
+ - email:
+ recipients: 'linaro-infrastructure-errors@lists.linaro.org paul.sokolovsky@linaro.org'