664b016fa5
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
14 lines
428 B
YAML
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"
|