Fabien Boucher | 194a2bf | 2017-12-02 18:17:58 +0100 | [diff] [blame^] | 1 | :title: Git Driver |
| 2 | |
| 3 | Git |
| 4 | === |
| 5 | |
| 6 | This driver can be used to load Zuul configuration from public Git repositories, |
| 7 | for instance from ``openstack-infra/zuul-jobs`` that is suitable for use by |
| 8 | any Zuul system. It can also be used to trigger jobs from ``ref-updated`` events |
| 9 | in a pipeline. |
| 10 | |
| 11 | Connection Configuration |
| 12 | ------------------------ |
| 13 | |
| 14 | The supported options in ``zuul.conf`` connections are: |
| 15 | |
| 16 | .. attr:: <git connection> |
| 17 | |
| 18 | .. attr:: driver |
| 19 | :required: |
| 20 | |
| 21 | .. value:: git |
| 22 | |
| 23 | The connection must set ``driver=git`` for Git connections. |
| 24 | |
| 25 | .. attr:: baseurl |
| 26 | |
| 27 | Path to the base Git URL. Git repos name will be appended to it. |
| 28 | |
| 29 | .. attr:: poll_delay |
| 30 | :default: 7200 |
| 31 | |
| 32 | The delay in seconds of the Git repositories polling loop. |
| 33 | |
| 34 | Trigger Configuration |
| 35 | --------------------- |
| 36 | |
| 37 | .. attr:: pipeline.trigger.<git source> |
| 38 | |
| 39 | The dictionary passed to the Git pipeline ``trigger`` attribute |
| 40 | supports the following attributes: |
| 41 | |
| 42 | .. attr:: event |
| 43 | :required: |
| 44 | |
| 45 | Only ``ref-updated`` is supported. |
| 46 | |
| 47 | .. attr:: ref |
| 48 | |
| 49 | On ref-updated events, a ref such as ``refs/heads/master`` or |
| 50 | ``^refs/tags/.*$``. This field is treated as a regular expression, |
| 51 | and multiple refs may be listed. |
| 52 | |
| 53 | .. attr:: ignore-deletes |
| 54 | :default: true |
| 55 | |
| 56 | When a ref is deleted, a ref-updated event is emitted with a |
| 57 | newrev of all zeros specified. The ``ignore-deletes`` field is a |
| 58 | boolean value that describes whether or not these newrevs |
| 59 | trigger ref-updated events. |