<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git/doc/ci/yaml, branch patch/fix-mergerequest-diff</title>
<subtitle>gitlab.com: gitlab-org/gitlab-ce.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/'/>
<entry>
<title>Merge branch 'feature-ci-only-except-trigger' into 'master'</title>
<updated>2016-03-22T09:42:40+00:00</updated>
<author>
<name>Kamil Trzciński</name>
<email>ayufan@ayufan.eu</email>
</author>
<published>2016-03-22T09:42:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=fc6ee359287c6bd286e32ce808e7069714e1732e'/>
<id>fc6ee359287c6bd286e32ce808e7069714e1732e</id>
<content type='text'>

CI: Add 'triggers' keyword to 'only' and 'except' lists to allow control over when triggers cause builds to run

Currently, the `only` and `except` keywords in `.gitlab-ci.yml` only accept ref names or the special `branches` and `tags` keywords. However, these are primarily useful when controlling how repository activity affects the creation of builds. In my case, instead of building on every commit, I'd like to use the following logic:

- If the repository is tagged, do a build.
- Any other normal commits should not cause a build.
- If a build is triggered via the API, always create one for the specified ref.

From what I can tell, this isn't possible via the existing YAML syntax. In this MR, I introduce a new keyword `triggers` that goes along with `branches` and `tags`. I can implement the logic above using the following job configuration:

```yaml
only:
  - tags
  - triggers
```

I updated the tests and documentation to reflect this and everything seems to pass.

See merge request !3230</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

CI: Add 'triggers' keyword to 'only' and 'except' lists to allow control over when triggers cause builds to run

Currently, the `only` and `except` keywords in `.gitlab-ci.yml` only accept ref names or the special `branches` and `tags` keywords. However, these are primarily useful when controlling how repository activity affects the creation of builds. In my case, instead of building on every commit, I'd like to use the following logic:

- If the repository is tagged, do a build.
- Any other normal commits should not cause a build.
- If a build is triggered via the API, always create one for the specified ref.

From what I can tell, this isn't possible via the existing YAML syntax. In this MR, I introduce a new keyword `triggers` that goes along with `branches` and `tags`. I can implement the logic above using the following job configuration:

```yaml
only:
  - tags
  - triggers
```

I updated the tests and documentation to reflect this and everything seems to pass.

See merge request !3230</pre>
</div>
</content>
</entry>
<entry>
<title>fixed md anchor link</title>
<updated>2016-03-18T11:46:19+00:00</updated>
<author>
<name>Pat Turner</name>
<email>pturner@pat-turners-computer.local</email>
</author>
<published>2016-03-18T11:46:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=280d9dc23fb30bfc31f11c75c9c22251dde4b995'/>
<id>280d9dc23fb30bfc31f11c75c9c22251dde4b995</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix for https://gitlab.com/gitlab-org/gitlab-ce/issues/14366</title>
<updated>2016-03-18T08:32:56+00:00</updated>
<author>
<name>Pat Turner</name>
<email>pturner@pat-turners-computer.local</email>
</author>
<published>2016-03-18T08:32:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=44ca0305cde4329405fca08b75028a09adf0735a'/>
<id>44ca0305cde4329405fca08b75028a09adf0735a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>removed anchor as unsupported in markdown</title>
<updated>2016-03-17T17:27:13+00:00</updated>
<author>
<name>Pat Turner</name>
<email>pturner@pat-turners-computer.local</email>
</author>
<published>2016-03-17T17:27:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=08ed12d91e589a1e55c6662ce06fe1478e8f9fd5'/>
<id>08ed12d91e589a1e55c6662ce06fe1478e8f9fd5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix for https://gitlab.com/gitlab-org/gitlab-ce/issues/14366</title>
<updated>2016-03-17T15:28:55+00:00</updated>
<author>
<name>Pat Turner</name>
<email>pturner@pat-turners-computer.local</email>
</author>
<published>2016-03-17T15:28:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=0ce1f9387a0bb92b6e6656fa90e7d456f82aded1'/>
<id>0ce1f9387a0bb92b6e6656fa90e7d456f82aded1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' into rm_duplicate_cache_ci_docs</title>
<updated>2016-03-17T13:56:44+00:00</updated>
<author>
<name>Achilleas Pipinellis</name>
<email>axilleas@axilleas.me</email>
</author>
<published>2016-03-17T13:56:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=5b1db58c852d6b36b91a61ec66e2f3cb5187f3a2'/>
<id>5b1db58c852d6b36b91a61ec66e2f3cb5187f3a2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add some documentation for `triggers` keyword [ci skip]</title>
<updated>2016-03-15T13:46:09+00:00</updated>
<author>
<name>Jason Roehm</name>
<email>jasonr@3db-labs.com</email>
</author>
<published>2016-03-15T13:46:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=b6ede127294fd0df63facb9a65791c018067db9f'/>
<id>b6ede127294fd0df63facb9a65791c018067db9f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Windows CI support is full since Runner v1.0.0</title>
<updated>2016-03-15T10:46:21+00:00</updated>
<author>
<name>Achilleas Pipinellis</name>
<email>axilleas@axilleas.me</email>
</author>
<published>2016-03-15T10:46:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=090368f6c6edf5727b3e8c5ed69ccaa31e8a2c5f'/>
<id>090368f6c6edf5727b3e8c5ed69ccaa31e8a2c5f</id>
<content type='text'>
[ci skip]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[ci skip]
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge duplicate cache entry in CI docs</title>
<updated>2016-03-14T17:28:23+00:00</updated>
<author>
<name>Achilleas Pipinellis</name>
<email>axilleas@axilleas.me</email>
</author>
<published>2016-03-14T17:28:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=a6f5304280d95c496b7669d1553cc6c246f11f94'/>
<id>a6f5304280d95c496b7669d1553cc6c246f11f94</id>
<content type='text'>
[ci skip]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[ci skip]
</pre>
</div>
</content>
</entry>
<entry>
<title>Add yaml definition to codeblock</title>
<updated>2016-03-14T08:14:32+00:00</updated>
<author>
<name>Achilleas Pipinellis</name>
<email>axilleas@axilleas.me</email>
</author>
<published>2016-03-14T08:14:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=7ebb932070f03e8fb6116b9f54148cae2d782776'/>
<id>7ebb932070f03e8fb6116b9f54148cae2d782776</id>
<content type='text'>
[ci skip]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[ci skip]
</pre>
</div>
</content>
</entry>
</feed>
