Skip to content

Commit

Permalink
DNM: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Spredzy committed Oct 8, 2018
1 parent 47139a0 commit 538db4f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
6 changes: 6 additions & 0 deletions playbooks/clean-static-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@
args:
chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
removes: "awx.egg-info"
ignore_errors: yes

- name: Remove old project directory
file:
path: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
state: absent
12 changes: 12 additions & 0 deletions playbooks/debug-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- hosts: all
tasks:
- name: Info
shell: cat .git/HEAD
args:
chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"

- name: Info 2
shell: ls -lR
args:
chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
4 changes: 2 additions & 2 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
- job:
name: tox-awx
parent: tox
pre-run: playbooks/clean-static-node.yaml
nodeset: static-node
pre-run: playbooks/debug-info.yaml
nodeset: fedora-latest-1vcpu
abstract: true

- job:
Expand Down
6 changes: 6 additions & 0 deletions zuul.d/nodesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
nodes:
- name: static
label: static-ansible

- nodeset:
name: fedora-latest-1vcpu
nodes:
- name: fedora-28
label: ansible-fedora-28-1vcpu

0 comments on commit 538db4f

Please sign in to comment.