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:
James E. Blair 2019-06-11 13:27:39 -07:00
parent 1211185f3b
commit bcde35e5ca
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
register: build
- name: Parse build response
set_fact:
build: "{{ build.json[-1] }}"
build: "{{ build.json[0] }}"
- name: Download archive
uri:
url: "{{ artifact.url }}"