ee6e77a30c
If the builds ssh key is removed during post run no cleanup actions can be made on remote hosts by jobs inheriting from the base job. It also causes problems with ssh keys not being removed for static nodes when jobs are aborted. Change-Id: I4e8772e697dbb98e8adfa4f8693c3ff71bf02ba1
30 lines
865 B
YAML
30 lines
865 B
YAML
- 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.yaml
|
|
roles:
|
|
- zuul: opendev.org/zuul/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.yaml
|
|
cleanup-run: playbooks/base-test/cleanup.yaml
|
|
roles:
|
|
- zuul: opendev.org/zuul/zuul-jobs
|
|
timeout: 1800
|