Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
6dc060f3
Commit
6dc060f3
authored
4 years ago
by
Thiago Figueiró
Browse files
Options
Downloads
Patches
Plain Diff
Add except example to troubleshooting section
See
&2300
for details
parent
d33ad2c0
No related branches found
No related tags found
2 merge requests
!31734
Update stable branch 13-0-stable-ee for automatic RC 13.0.0-rc20200512114055
,
!31518
Add except example to only/except deprecation troubleshooting section
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/user/application_security/index.md
+25
-0
25 additions, 0 deletions
doc/user/application_security/index.md
with
25 additions
and
0 deletions
doc/user/application_security/index.md
+
25
−
0
View file @
6dc060f3
...
...
@@ -394,6 +394,31 @@ spotbugs-sast:
-
if
:
$CI_MERGE_REQUEST_ID
```
If your override is aimed at limiting jobs to only run on branches, not tags,
it would look similar to:
```
yaml
include
:
-
template
:
SAST.gitlab-ci.yml
# Ensure that the scanning is not executed on tags
spotbugs-sast
:
except
:
-
tags
```
To transition to the new
`rules`
syntax, the override would be rewritten as:
```
yaml
include
:
-
template
:
SAST.gitlab-ci.yml
# Ensure that the scanning is not executed on tags
spotbugs-sast
:
rules
:
-
if
:
$CI_COMMIT_TAG ==
null
```
[
Learn more on the usage of `rules`
](
../../ci/yaml/README.md#rules
)
.
#### Pin your templates to the deprecated versions
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment