a9f6ab15e3
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: Id751e8a842ed0d03e605dcd0620c388c3d7f973b
31 lines
910 B
YAML
31 lines
910 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
|
|
cleanup-run: playbooks/base/cleanup.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
|