zuul-jobs/roles/upload-artifactory/tasks/main.yaml
Albin Vass 664b016fa5 Add upload-artifactory role
Adds a role to let users define a manifest of artifacts located
in zuul-output/artifacts that should be uploaded to pre defined
artifactory instances.

Change-Id: I00dc0302e85ce59b3808f6e62e2bcdadf2e41fde
2020-05-12 20:02:12 +02:00

14 lines
428 B
YAML

- name: Fail if run by an unsupported ansible version
fail:
msg: This role can only be used by ansible version 2.7 and greater.
when: ansible_version.full < "2.7.0"
- name: Upload artifacts
include_tasks: upload.yaml
loop: "{{ upload_artifactory_manifest.artifacts }}"
loop_control:
loop_var: zj_artifact
when:
- upload_artifactory_manifest is defined
- "'artifacts' in upload_artifactory_manifest"