Create python-linters job
Here we are creating out first in-repo job configuration for zuulv3.
One of the more simpler jobs we can define is the tox -epep8 job.
Change-Id: I4ecacf1b9ca664a98f06f5b998f19410fa7ea11d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
diff --git a/playbooks/roles/prepare-workspace/tasks/main.yaml b/playbooks/roles/prepare-workspace/tasks/main.yaml
new file mode 100644
index 0000000..76f9d95
--- /dev/null
+++ b/playbooks/roles/prepare-workspace/tasks/main.yaml
@@ -0,0 +1,21 @@
+- name: Ensure console.log does not exist.
+ file:
+ path: /tmp/console.log
+ state: absent
+
+- name: Start zuul_console daemon.
+ zuul_console:
+ path: /tmp/console.log
+ port: 19885
+
+- name: Create workspace directory.
+ file:
+ path: "{{ prepare_workspace_root }}"
+ owner: zuul
+ group: zuul
+ state: directory
+
+- name: Synchronize src repos to workspace directory.
+ synchronize:
+ dest: "{{ prepare_workspace_root }}"
+ src: "{{ zuul.launcher.src_root }}"