Add a job that runs the upload-git-mirror role
This new job can be used by projects to mirror their repository to a remote git server. Change-Id: I6c51a6152f546dfdad2d0bfe260e8864e1803f8c
This commit is contained in:
parent
614c6c043e
commit
4e951c6af4
@ -5,3 +5,4 @@ General Purpose Jobs
|
||||
.. zuul:autojob:: unittests
|
||||
.. zuul:autojob:: multinode
|
||||
.. zuul:autojob:: run-test-command
|
||||
.. zuul:autojob:: upload-git-mirror
|
||||
|
4
playbooks/upload-git-mirror/run.yaml
Normal file
4
playbooks/upload-git-mirror/run.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
- name: Mirror git repository to a remote git server
|
||||
hosts: all
|
||||
roles:
|
||||
- upload-git-mirror
|
28
zuul.yaml
28
zuul.yaml
@ -50,6 +50,34 @@
|
||||
nodeset:
|
||||
nodes: []
|
||||
|
||||
- job:
|
||||
name: upload-git-mirror
|
||||
description: |
|
||||
Mirrors a tested project repository to a remote git server.
|
||||
|
||||
.. zuul:jobvar:: git_mirror_credentials
|
||||
:type: dict
|
||||
|
||||
This is expected to be a Zuul Secret with these keys:
|
||||
|
||||
.. zuul:jobvar:: user
|
||||
|
||||
SSH user for the remote git repository
|
||||
|
||||
.. zuul:jobvar:: host
|
||||
|
||||
SSH host for the remote git repository
|
||||
|
||||
.. zuul:jobvar:: key
|
||||
|
||||
Literal private key contents.
|
||||
Should start with something like ``-----BEGIN RSA PRIVATE KEY-----``.
|
||||
|
||||
.. zuul:jobvar:: git_mirror_repository
|
||||
|
||||
Path of the remote git repository
|
||||
run: playbooks/upload-git-mirror/run.yaml
|
||||
|
||||
- job:
|
||||
name: tox
|
||||
parent: unittests
|
||||
|
Loading…
Reference in New Issue
Block a user