Skip to content

Commit 06d4104

Browse files
committed
Dont merge
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
1 parent f8a749e commit 06d4104

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

.zuul.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1+
- job:
2+
name: test-sandbox
3+
run: playbooks/run.yaml
4+
nodeset: centos-8-1vcpu
5+
vars:
6+
download_artifact_directory: ~/downloads
7+
download_artifact_type:
8+
- ansible_collection
9+
110
- project:
11+
check:
12+
jobs:
13+
- build-ansible-collection
14+
- test-sandbox:
15+
dependencies:
16+
- build-ansible-collection
217
post:
318
jobs:
419
- release-ansible-collection-galaxy-dev
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
- name: create dir
3+
file:
4+
path: "{{ download_artifact_directory }}"
5+
state: directory
6+
7+
- name: Download archive by type
8+
uri:
9+
url: "{{ artifact.url }}"
10+
dest: "{{ download_artifact_directory }}"
11+
loop: "{{ zuul.artifacts }}"
12+
loop_control:
13+
loop_var: artifact
14+
when: "'metadata' in artifact and 'type' in artifact.metadata and (artifact.metadata.type == download_artifact_type or ((download_artifact_type | type_debug) == 'list' and artifact.metadata.type in download_artifact_type))"

playbooks/run.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- hosts: all
2+
tasks:
3+
- name: download ansible collections
4+
include_role:
5+
name: download-artifact

0 commit comments

Comments
 (0)