zuul-jobs/test-playbooks
Andrii Ostapenko ef47a743b6
Add ability to use *-docker-image roles in periodic jobs
Use '{{ zuul.pipeline }}' tag prefix in *-docker-image instead of
'change_{{ zuul.change }}' one when zuul.change is not provided, that is
the case with periodic jobs. This allows to build, upload and promote images
using periodic jobs e.g:

- project:
    periodic:
      - project-buildset-registry

      - project-build-image1:
          dependencies:
            - name: project-buildset-registry
      - project-build-image2:
          dependencies:
            - name: project-buildset-registry

      # pulls from buildset registry and tests both images
      - project-test:
          dependencies:
            - name: project-build-image1
            - name: project-build-image2

      # pre-pulls images from buildset registry for fast build
      - project-upload-image1:
          dependencies:
            - name: project-test
      - project-upload-image2:
          dependencies:
            - name: project-test

      - project-promote:
          dependencies:
            - name: project-upload-image1
            - name: project-upload-image2

This fuctionality will allow to keep latest images up to date for the
case when image incorporates continuously updating code from multiple
repositories.

Using true ternary for tag evaluation because ternary filter requires
all passed to it variables be defined or defaulted [0].

[0] https://github.com/ansible/ansible/issues/51276

Change-Id: I8eb7d2baa24905e7aac51fce0b2f9b1f24f037f9
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2020-09-25 14:22:17 -05:00
..
ansible-lint-rules Add linting rule to enforce no-same-owner policy 2020-06-18 11:06:45 +02:00
artifactory upload-artifactory: fix variable misspelling 2020-05-28 16:26:40 +02:00
base-roles Disable base role testing that runs code on localhost 2020-07-22 15:32:18 -07:00
build-roles Add Bazel build and ensure roles 2020-04-30 18:05:41 +01:00
container Add ability to use *-docker-image roles in periodic jobs 2020-09-25 14:22:17 -05:00
dhall test-playbooks: avoid warnings with shell/command 2020-06-04 18:54:37 +01:00
ensure-kubernetes ensure-kubernetes: workaround slow account creation 2020-09-17 13:04:54 +10:00
ensure-podman Add support for RedHat platforms on ensure-podman 2020-04-06 18:52:07 +01:00
haskell test-playbooks: avoid warnings with shell/command 2020-06-04 18:54:37 +01:00
javascripts test-playbooks: avoid warnings with shell/command 2020-06-04 18:54:37 +01:00
multinode Add focal testing 2020-08-18 15:35:02 +10:00
packer Adds roles to install and run hashicorp packer 2020-04-13 16:44:32 +02:00
python Remove default tox_envlist: venv 2020-07-16 21:59:57 +02:00
registry Merge "test-playbooks: avoid warnings with shell/command" 2020-06-09 17:20:03 +00:00
rust Add ensure-rust role 2020-08-25 09:04:43 +10:00
shake shake-build: add shake build system job 2020-05-28 12:48:16 +00:00
terraform Allow deleting workspace after running terraform destroy 2020-07-01 13:25:39 +02:00
tox test-playbooks: avoid warnings with shell/command 2020-06-04 18:54:37 +01:00
dstat-graph.yaml test-playbooks: avoid warnings with shell/command 2020-06-04 18:54:37 +01:00
ensure-docker.yaml Rename install-docker to ensure-docker for consistency 2020-04-04 15:41:29 -04:00
ensure-java.yaml Add ensure-java role 2020-02-21 06:55:47 -06:00
ensure-pip.yaml Partial revert "Ensure wheel exists for build-release-python"; move to ensure-pip 2020-06-18 12:51:56 +00:00
ensure-python-pyenv.yaml yamlint: EOF newlines and comments indent 2020-05-14 08:42:17 +00:00
ensure-tox.yaml Add option to install tox into a path location 2020-06-17 16:31:07 -05:00
ensure-zookeeper.yaml ensure-zookeeper: add role to setup zookeeper 2020-09-24 23:29:59 +00:00
generate-zuul-manifest.yaml Add generate-zuul-manifest role 2019-07-23 09:43:55 -07:00
local-log-download.yaml local-log-download : role with script to download all log files 2020-04-01 07:41:26 +11:00
simple-role-test.yaml Add a simple test of the install-nodejs role 2019-06-27 14:04:57 -07:00
upload-git-mirror.yaml test-playbooks: avoid warnings with shell/command 2020-06-04 18:54:37 +01:00
upload-logs-s3.yaml Add upload-logs-s3 2020-07-19 21:22:36 +02:00