Create base-ozj base job
This is needed so we can remove / reuse base-minimal name so we can move base into openstack-zuul-jobs. Change-Id: I97f8198889c5b1227a5027db533f2b2f855df899 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
1c650ef2c7
commit
5332d0d4b1
8
playbooks/base-ozj/README.rst
Normal file
8
playbooks/base-ozj/README.rst
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
base-ozj
|
||||||
|
--------
|
||||||
|
|
||||||
|
These playbooks are used to select a minimal subset of the roles included in
|
||||||
|
the base playbooks.
|
||||||
|
|
||||||
|
It will do nothing else than what is explicitly necessary for any job to run
|
||||||
|
properly.
|
10
playbooks/base-ozj/post-logs.yaml
Normal file
10
playbooks/base-ozj/post-logs.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: add-fileserver
|
||||||
|
fileserver: "{{ site_logs }}"
|
||||||
|
- role: ara-report
|
||||||
|
|
||||||
|
- hosts: "{{ site_logs.fqdn }}"
|
||||||
|
roles:
|
||||||
|
- role: upload-logs
|
||||||
|
zuul_log_url: "http://logs.openstack.org"
|
10
playbooks/base-ozj/post.yaml
Normal file
10
playbooks/base-ozj/post.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
- hosts: all
|
||||||
|
roles:
|
||||||
|
- fetch-output
|
||||||
|
|
||||||
|
- hosts: all
|
||||||
|
# NOTE(pabelanger): We ignore_errors for the following tasks as not to fail
|
||||||
|
# successful jobs.
|
||||||
|
ignore_errors: yes
|
||||||
|
roles:
|
||||||
|
- remove-build-sshkey
|
9
playbooks/base-ozj/pre.yaml
Normal file
9
playbooks/base-ozj/pre.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
- hosts: all
|
||||||
|
roles:
|
||||||
|
- add-build-sshkey
|
||||||
|
- start-zuul-console
|
||||||
|
- log-inventory
|
||||||
|
- role: validate-host
|
||||||
|
# TODO(mordred) When we have site-local variables, these should go there
|
||||||
|
zuul_traceroute_host: git.openstack.org
|
||||||
|
zuul_image_manifest: /etc/dib-builddate.txt
|
@ -155,6 +155,40 @@
|
|||||||
- name: log_cloud_config
|
- name: log_cloud_config
|
||||||
secret: openstackinfra_vexxhost
|
secret: openstackinfra_vexxhost
|
||||||
|
|
||||||
|
# TODO(pabelanger): Look to see if we can delete once topic:zuul-minimal-jobs is
|
||||||
|
# finished.
|
||||||
|
- job:
|
||||||
|
name: base-ozj
|
||||||
|
parent: null
|
||||||
|
abstract: true
|
||||||
|
description: |
|
||||||
|
A subset of what the 'base' job provides: the absolute minimum considered
|
||||||
|
required to run for any one job.
|
||||||
|
It doesn't set up cached git repositories, will not set up mirrors,
|
||||||
|
doesn't validate the node, etc.
|
||||||
|
It is meant to be used, amongst other things, to test roles and
|
||||||
|
playbooks that would otherwise be included by default as part of the
|
||||||
|
'base' job.
|
||||||
|
These tasks, if required, can be included by the dependant jobs
|
||||||
|
themselves on a need basis.
|
||||||
|
pre-run: playbooks/base-ozj/pre.yaml
|
||||||
|
post-run:
|
||||||
|
- playbooks/base-ozj/post.yaml
|
||||||
|
- playbooks/base-ozj/post-logs.yaml
|
||||||
|
roles:
|
||||||
|
- zuul: openstack-infra/zuul-jobs
|
||||||
|
vars:
|
||||||
|
ara_report_type: database
|
||||||
|
ara_report_path: ara-report
|
||||||
|
timeout: 1800
|
||||||
|
post-timeout: 1800
|
||||||
|
nodeset:
|
||||||
|
nodes:
|
||||||
|
- name: ubuntu-xenial
|
||||||
|
label: ubuntu-xenial
|
||||||
|
secrets:
|
||||||
|
- site_logs
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: publish-openstack-artifacts
|
name: publish-openstack-artifacts
|
||||||
description: |
|
description: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user