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
ad7ae92d
Commit
ad7ae92d
authored
Apr 26, 2021
by
Rémy Coutable
Committed by
Albert Salim
Apr 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to use the Code-Quality template as-is and only override its rules
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
045a85bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
26 deletions
+3
-26
.gitlab/ci/reports.gitlab-ci.yml
.gitlab/ci/reports.gitlab-ci.yml
+3
-26
No files found.
.gitlab/ci/reports.gitlab-ci.yml
View file @
ad7ae92d
#
include:
#
- template: Jobs/Code-Quality.gitlab-ci.yml
include
:
-
template
:
Jobs/Code-Quality.gitlab-ci.yml
# - template: Security/SAST.gitlab-ci.yml
# - template: Security/Dependency-Scanning.gitlab-ci.yml
# - template: Security/DAST.gitlab-ci.yml
# We need to duplicate this job's definition because the rules
# defined in the extended jobs rely on local YAML anchors
# (`*if-default-refs`)
code_quality
:
extends
:
-
.default-retry
-
.reports:rules:code_quality
-
.use-docker-in-docker
stage
:
test
needs
:
[]
variables
:
CODE_QUALITY_IMAGE
:
"
registry.gitlab.com/gitlab-org/ci-cd/codequality:0.85.23"
script
:
-
|
if ! docker info &>/dev/null; then
if [ -z "$DOCKER_HOST" -a "$KUBERNETES_PORT" ]; then
export DOCKER_HOST='tcp://localhost:2375'
fi
fi
-
docker pull --quiet "$CODE_QUALITY_IMAGE"
-
docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"$CODE_QUALITY_IMAGE" /code
artifacts
:
reports
:
codequality
:
gl-code-quality-report.json
paths
:
-
gl-code-quality-report.json
# GitLab-specific
expire_in
:
1 week
# GitLab-specific
rules
:
!reference
[
"
.reports:rules:code_quality"
,
rules
]
# We need to duplicate this job's definition because the rules
# defined in the extended jobs rely on local YAML anchors
...
...
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