From bcde35e5ca3e271e5b2a74a2f7e81b176fc4ad91 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 11 Jun 2019 13:27:39 -0700 Subject: [PATCH] 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 --- roles/download-artifact/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/download-artifact/tasks/main.yaml b/roles/download-artifact/tasks/main.yaml index 0be75f6ba..0d5d7e6b8 100644 --- a/roles/download-artifact/tasks/main.yaml +++ b/roles/download-artifact/tasks/main.yaml @@ -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 }}"