Skip to content

Commit d3f6f43

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

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-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_job: build-ansible-collection
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,9 @@
1+
---
2+
- name: Download archive by type
3+
uri:
4+
url: "{{ artifact.url }}"
5+
dest: "{{ download_artifact_directory }}"
6+
loop: "{{ zuul.artifacts }}"
7+
loop_control:
8+
loop_var: artifact
9+
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)