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
bec0c5f0
Commit
bec0c5f0
authored
Oct 10, 2019
by
drew
Committed by
Evan Read
Oct 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation: Correct spelling of MR branch name variable in job:rules documentation
parent
33009d42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+4
-4
No files found.
doc/ci/yaml/README.md
View file @
bec0c5f0
...
...
@@ -755,7 +755,7 @@ the status of other builds:
job
:
script
:
"
echo
Hello,
Rules!"
rules
:
-
if
:
'
$CI_MERGE_REQUEST_TARGET_BRANCH
==
"master"'
-
if
:
'
$CI_MERGE_REQUEST_TARGET_BRANCH
_NAME
==
"master"'
when
:
always
-
if
:
'
$VAR
=~
/pattern/'
when
:
manual
...
...
@@ -781,11 +781,11 @@ evaluated should be conjoined into a single expression using `&&` or `||`. For e
job
:
script
:
"
echo
Hello,
Rules!"
rules
:
-
if
:
'
$CI_MERGE_REQUEST_SOURCE_BRANCH
=~
/^feature/
&&
$CI_MERGE_REQUEST_TARGET_BRANCH
==
"master"'
# This rule will be evaluated
-
if
:
'
$CI_MERGE_REQUEST_SOURCE_BRANCH
_NAME
=~
/^feature/
&&
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
==
"master"'
# This rule will be evaluated
when
:
always
-
if
:
'
$CI_MERGE_REQUEST_SOURCE_BRANCH
=~
/^feature/'
# This rule will only be evaluated if the target branch is not "master"
-
if
:
'
$CI_MERGE_REQUEST_SOURCE_BRANCH
_NAME
=~
/^feature/'
# This rule will only be evaluated if the target branch is not "master"
when
:
manual
-
if
:
'
$CI_MERGE_REQUEST_SOURCE_BRANCH'
# If neither of the first two match but the simple presence does, we set to "on_success" by default
-
if
:
'
$CI_MERGE_REQUEST_SOURCE_BRANCH
_NAME
'
# If neither of the first two match but the simple presence does, we set to "on_success" by default
```
If none of the provided rules match, the job will be set to
`when:never`
, and
...
...
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