diff --git a/playbooks/base-test/post-ssh.yaml b/playbooks/base-test/post-ssh.yaml new file mode 100644 index 0000000..d793838 --- /dev/null +++ b/playbooks/base-test/post-ssh.yaml @@ -0,0 +1,3 @@ +- hosts: all + roles: + - remove-build-sshkey diff --git a/playbooks/base-test/pre.yaml b/playbooks/base-test/pre.yaml new file mode 100644 index 0000000..a5a3f4f --- /dev/null +++ b/playbooks/base-test/pre.yaml @@ -0,0 +1,4 @@ +- hosts: all + roles: + - add-build-sshkey + - prepare-workspace diff --git a/playbooks/base/post-ssh.yaml b/playbooks/base/post-ssh.yaml new file mode 100644 index 0000000..d793838 --- /dev/null +++ b/playbooks/base/post-ssh.yaml @@ -0,0 +1,3 @@ +- hosts: all + roles: + - remove-build-sshkey diff --git a/playbooks/base/pre.yaml b/playbooks/base/pre.yaml new file mode 100644 index 0000000..a5a3f4f --- /dev/null +++ b/playbooks/base/pre.yaml @@ -0,0 +1,4 @@ +- hosts: all + roles: + - add-build-sshkey + - prepare-workspace diff --git a/zuul.yaml b/zuul.yaml new file mode 100644 index 0000000..310c297 --- /dev/null +++ b/zuul.yaml @@ -0,0 +1,28 @@ +- job: + name: base + parent: null + description: | + The recommended base job. + + All jobs ultimately inherit from this. It runs a pre-playbook + which copies all of the job's prepared git repos on to all of + the nodes in the nodeset. + + It also sets a default timeout value (which may be overidden). + pre-run: playbooks/base/pre.yaml + post-run: playbooks/base/post-ssh.yaml + roles: + - zuul: openstack-infra/zuul-jobs + timeout: 1800 + +- job: + name: base-test + parent: null + description: | + A job to test changes to the base job without disturbing the + main job in production. Not for general use. + pre-run: playbooks/base-test/pre.yaml + post-run: playbooks/base-test/post-ssh.yaml + roles: + - zuul: openstack-infra/zuul-jobs + timeout: 1800