Remove extra task from download-artifacts
This task is no longer necessary and should have been removed in
6523b6a530
as part of the work to
download multiple artifacts.
Also fix a syntax error in a template string.
Change-Id: I6a1d067a22a55843ec3320204bb673eaa0bcab4d
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
uri:
|
||||
url: "{{ artifact.url }}"
|
||||
dest: "{{ download_artifact_directory }}"
|
||||
loop: "{{ (build.artifacts }}"
|
||||
loop: "{{ build.artifacts }}"
|
||||
loop_control:
|
||||
loop_var: artifact
|
||||
when: "artifact.name == download_artifact_name or ((download_artifact_name | type_debug) == 'list' and artifact.name in download_artifact_name)"
|
||||
|
@@ -2,9 +2,6 @@
|
||||
uri:
|
||||
url: "{{ download_artifact_api }}/builds?{{ download_artifact_query }}"
|
||||
register: build
|
||||
- name: Extract artifact URL
|
||||
set_fact:
|
||||
archive_url: "{{ (build.json[0].artifacts | selectattr('name', 'equalto', download_artifact_name) | list)[0].url }}"
|
||||
- name: Process build
|
||||
loop: "{{ build.json }}"
|
||||
loop_control:
|
||||
|
Reference in New Issue
Block a user