Skip to content

Commit 65abb71

Browse files
committed
Dont merge
Signed-off-by: Paul Belanger <[email protected]>
1 parent f8a749e commit 65abb71

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.zuul.yaml

+15
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
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

+5
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-ansible-collections

0 commit comments

Comments
 (0)