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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
cf684b4d
Commit
cf684b4d
authored
Jun 12, 2017
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts for doc/ci/triggers/README.md
parent
3274cfdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
35 deletions
+0
-35
doc/ci/triggers/README.md
doc/ci/triggers/README.md
+0
-35
No files found.
doc/ci/triggers/README.md
View file @
cf684b4d
...
...
@@ -16,7 +16,6 @@ The following methods of authentication are supported.
A unique trigger token can be obtained when
[
adding a new trigger
](
#adding-a-new-trigger
)
.
<<<<<<< HEAD
### CI job token
> **Note**:
...
...
@@ -44,8 +43,6 @@ Pipelines triggered that way also expose a special variable:
For more information, read about
[
triggering a pipeline
](
#triggering-a-pipeline
)
.
=======
>>>>>>> ce-com/master
## Adding a new trigger
You can add a new trigger by going to your project's
...
...
@@ -150,7 +147,6 @@ Now, whenever a new tag is pushed on project A, the job will run and the
`stage: test`
complete successfully.
## Triggering a pipeline from a webhook
<<<<<<< HEAD
> **Notes**:
-
Introduced in GitLab 8.14.
...
...
@@ -180,37 +176,6 @@ This information is also exposed in the UI.
![
Job variables in UI
](
img/trigger_variables.png
)
=======
> **Notes**:
-
Introduced in GitLab 8.14.
-
`ref`
should be passed as part of the URL in order to take precedence over
`ref`
from the webhook body that designates the branch ref that fired the
trigger in the source repository.
-
`ref`
should be URL-encoded if it contains slashes.
To trigger a job from a webhook of another project you need to add the following
webhook URL for Push and Tag events (change the project ID, ref and token):
```
https://gitlab.example.com/api/v4/projects/9/ref/master/trigger/pipeline?token=TOKEN
```
## Making use of trigger variables
You can pass any number of arbitrary variables in the trigger API call and they
will be available in GitLab CI so that they can be used in your
`.gitlab-ci.yml`
file. The parameter is of the form:
```
variables[key]=value
```
This information is also exposed in the UI.
![
Job variables in UI
](
img/trigger_variables.png
)
>>>>>>> ce-com/master
Using trigger variables can be proven useful for a variety of reasons:
*
Identifiable jobs. Since the variable is exposed in the UI you can know
...
...
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