Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
b6ede127
Commit
b6ede127
authored
Mar 15, 2016
by
Jason Roehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some documentation for `triggers` keyword [ci skip]
parent
6c1badbd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+12
-1
No files found.
doc/ci/yaml/README.md
View file @
b6ede127
...
@@ -286,7 +286,7 @@ There are a few rules that apply to the usage of refs policy:
...
@@ -286,7 +286,7 @@ There are a few rules that apply to the usage of refs policy:
*
`only`
and
`except`
are inclusive. If both
`only`
and
`except`
are defined
*
`only`
and
`except`
are inclusive. If both
`only`
and
`except`
are defined
in a job specification, the ref is filtered by
`only`
and
`except`
.
in a job specification, the ref is filtered by
`only`
and
`except`
.
*
`only`
and
`except`
allow the use of regular expressions.
*
`only`
and
`except`
allow the use of regular expressions.
*
`only`
and
`except`
allow the use of special keywords:
`branches`
and
`tag
s`
.
*
`only`
and
`except`
allow the use of special keywords:
`branches`
,
`tags`
, and
`trigger
s`
.
*
`only`
and
`except`
allow to specify a repository path to filter jobs for
*
`only`
and
`except`
allow to specify a repository path to filter jobs for
forks.
forks.
...
@@ -303,6 +303,17 @@ job:
...
@@ -303,6 +303,17 @@ job:
-
branches
-
branches
```
```
In this example,
`job`
will run only for refs that are tagged, or if a build is explicitly requested
via an API trigger.
```
yaml
job
:
# use special keywords
only
:
-
tags
-
triggers
```
The repository path can be used to have jobs executed only for the parent
The repository path can be used to have jobs executed only for the parent
repository and not forks:
repository and not forks:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment