download-artifacts: correct build selection
The most recent build is the first entry in the result set, not the last -- the set is returned in descending order. Change-Id: I5fb788e5cf68a194e90e23196d3eeef6169c9c59
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
register: build
|
register: build
|
||||||
- name: Parse build response
|
- name: Parse build response
|
||||||
set_fact:
|
set_fact:
|
||||||
build: "{{ build.json[-1] }}"
|
build: "{{ build.json[0] }}"
|
||||||
- name: Download archive
|
- name: Download archive
|
||||||
uri:
|
uri:
|
||||||
url: "{{ artifact.url }}"
|
url: "{{ artifact.url }}"
|
||||||
|
Reference in New Issue
Block a user