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
af985206
Commit
af985206
authored
Oct 29, 2019
by
Evan Read
Committed by
Russell Dickenson
Oct 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add content that variables can be passed to pipelines/new page
parent
e1201d0a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
doc/ci/pipelines.md
doc/ci/pipelines.md
+32
-0
No files found.
doc/ci/pipelines.md
View file @
af985206
...
...
@@ -269,6 +269,38 @@ To execute a pipeline manually:
The pipeline will execute the jobs as configured.
#### Using a query string
> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/24146) in GitLab 12.5.
Variables on the
**Run Pipeline**
page can be pre-populated by passing variable keys and values
in a query string appended to the
`pipelines/new`
URL. The format is:
```
plaintext
.../pipelines/new?ref=<branch>&var[<variable_key>]=<value>&file_var[<file_key>]=<value>
```
The following parameters are supported:
-
`ref`
: specify the branch to populate the
**Run for**
field with.
-
`var`
: specify a
`Variable`
variable.
-
`file_var`
: specify a
`File`
variable.
For each
`var`
or
`file_var`
, a key and value are required.
For example, the query string
`.../pipelines/new?ref=my_branch&var[foo]=bar&file_var[file_foo]=file_bar`
will pre-populate the
**Run Pipeline**
page as follows:
-
**Run for**
field:
`my_branch`
.
-
**Variables**
section:
-
Variable:
-
Key:
`foo`
-
Value:
`bar`
-
File:
-
Key:
`file_foo`
-
Value:
`file_bar`
### Accessing pipelines
You can find the current and historical pipeline runs under your project's
...
...
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