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
b07b9f66
Commit
b07b9f66
authored
Mar 16, 2020
by
Maxime Orefice
Committed by
Mayra Cabrera
Mar 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new codequality docker image
parent
277830e9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
9 deletions
+14
-9
.gitlab/ci/reports.gitlab-ci.yml
.gitlab/ci/reports.gitlab-ci.yml
+1
-1
changelogs/unreleased/mo-use-new-code-quality-image.yml
changelogs/unreleased/mo-use-new-code-quality-image.yml
+5
-0
doc/topics/autodevops/index.md
doc/topics/autodevops/index.md
+1
-1
doc/user/project/merge_requests/code_quality.md
doc/user/project/merge_requests/code_quality.md
+6
-6
lib/gitlab/ci/templates/Jobs/Code-Quality.gitlab-ci.yml
lib/gitlab/ci/templates/Jobs/Code-Quality.gitlab-ci.yml
+1
-1
No files found.
.gitlab/ci/reports.gitlab-ci.yml
View file @
b07b9f66
...
@@ -20,7 +20,7 @@ code_quality:
...
@@ -20,7 +20,7 @@ code_quality:
variables
:
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
DOCKER_TLS_CERTDIR
:
"
"
CODE_QUALITY_IMAGE
:
"
registry.gitlab.com/gitlab-org/
security-products
/codequality:0.85.9"
CODE_QUALITY_IMAGE
:
"
registry.gitlab.com/gitlab-org/
ci-cd
/codequality:0.85.9"
script
:
script
:
-
|
-
|
if ! docker info &>/dev/null; then
if ! docker info &>/dev/null; then
...
...
changelogs/unreleased/mo-use-new-code-quality-image.yml
0 → 100644
View file @
b07b9f66
---
title
:
Use new codequality docker image from ci-cd group
merge_request
:
27098
author
:
type
:
other
doc/topics/autodevops/index.md
View file @
b07b9f66
...
@@ -420,7 +420,7 @@ tests, it's up to you to add them.
...
@@ -420,7 +420,7 @@ tests, it's up to you to add them.
### Auto Code Quality **(STARTER)**
### Auto Code Quality **(STARTER)**
Auto Code Quality uses the
Auto Code Quality uses the
[
Code Quality image
](
https://gitlab.com/gitlab-org/
security-products
/codequality
)
to run
[
Code Quality image
](
https://gitlab.com/gitlab-org/
ci-cd
/codequality
)
to run
static analysis and other code checks on the current code. The report is
static analysis and other code checks on the current code. The report is
created, and is uploaded as an artifact which you can later download and check
created, and is uploaded as an artifact which you can later download and check
out.
out.
...
...
doc/user/project/merge_requests/code_quality.md
View file @
b07b9f66
...
@@ -16,7 +16,7 @@ Code Quality:
...
@@ -16,7 +16,7 @@ Code Quality:
subscription.
subscription.
-
Runs in
[
pipelines
](
../../../ci/pipelines.md
)
using a Docker image built in the
-
Runs in
[
pipelines
](
../../../ci/pipelines.md
)
using a Docker image built in the
[
GitLab Code
[
GitLab Code
Quality
](
https://gitlab.com/gitlab-org/
security-products/codequality
)
project using
[
default Code Climate configurations
](
https://gitlab.com/gitlab-org/security-products
/codequality/-/tree/master/codeclimate_defaults
)
.
Quality
](
https://gitlab.com/gitlab-org/
ci-cd/codequality
)
project using
[
default Code Climate configurations
](
https://gitlab.com/gitlab-org/ci-cd
/codequality/-/tree/master/codeclimate_defaults
)
.
-
Can make use of a
[
template
](
#example-configuration
)
.
-
Can make use of a
[
template
](
#example-configuration
)
.
-
Is available with
[
Auto
-
Is available with
[
Auto
DevOps
](
../../../topics/autodevops/index.md#auto-code-quality-starter
)
.
DevOps
](
../../../topics/autodevops/index.md#auto-code-quality-starter
)
.
...
@@ -133,14 +133,14 @@ code_quality:
...
@@ -133,14 +133,14 @@ code_quality:
--env SOURCE_CODE="$PWD"
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/
security-products
/codequality:$SP_VERSION" /code
"registry.gitlab.com/gitlab-org/
ci-cd
/codequality:$SP_VERSION" /code
artifacts
:
artifacts
:
reports
:
reports
:
codequality
:
gl-code-quality-report.json
codequality
:
gl-code-quality-report.json
```
```
In GitLab 12.6, Code Quality switched to the
In GitLab 12.6, Code Quality switched to the
[
new versioning scheme
](
https://gitlab.com/gitlab-org/
security-products/codequality/-/merge_requests/38
)
.
[
new versioning scheme
](
https://gitlab.com/gitlab-org/
ci-cd/codequality#versioning-and-release-cycle
)
.
It is highly recommended to include the Code Quality template as shown in the
It is highly recommended to include the Code Quality template as shown in the
[
example configuration
](
#example-configuration
)
, which uses the new versioning scheme.
[
example configuration
](
#example-configuration
)
, which uses the new versioning scheme.
If not using the template, the
`SP_VERSION`
variable can be hardcoded to use the
If not using the template, the
`SP_VERSION`
variable can be hardcoded to use the
...
@@ -160,7 +160,7 @@ code_quality:
...
@@ -160,7 +160,7 @@ code_quality:
--env SOURCE_CODE="$PWD"
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/
security-products
/codequality:$SP_VERSION" /code
"registry.gitlab.com/gitlab-org/
ci-cd
/codequality:$SP_VERSION" /code
artifacts
:
artifacts
:
reports
:
reports
:
codequality
:
gl-code-quality-report.json
codequality
:
gl-code-quality-report.json
...
@@ -182,7 +182,7 @@ code_quality:
...
@@ -182,7 +182,7 @@ code_quality:
--env SOURCE_CODE="$PWD"
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/
security-products
/codequality:$SP_VERSION" /code
"registry.gitlab.com/gitlab-org/
ci-cd
/codequality:$SP_VERSION" /code
artifacts
:
artifacts
:
paths
:
[
gl-code-quality-report.json
]
paths
:
[
gl-code-quality-report.json
]
```
```
...
@@ -214,7 +214,7 @@ The Code Quality job supports environment variables that users can set to
...
@@ -214,7 +214,7 @@ The Code Quality job supports environment variables that users can set to
configure job execution at runtime.
configure job execution at runtime.
For a list of available environment variables, see
For a list of available environment variables, see
[
Environment variables
](
https://gitlab.com/gitlab-org/
security-products/codequality/blob/master/README.md
#environment-variables
)
.
[
Environment variables
](
https://gitlab.com/gitlab-org/
ci-cd/codequality
#environment-variables
)
.
## Implementing a custom tool
## Implementing a custom tool
...
...
lib/gitlab/ci/templates/Jobs/Code-Quality.gitlab-ci.yml
View file @
b07b9f66
...
@@ -7,7 +7,7 @@ code_quality:
...
@@ -7,7 +7,7 @@ code_quality:
variables
:
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
DOCKER_TLS_CERTDIR
:
"
"
CODE_QUALITY_IMAGE
:
"
registry.gitlab.com/gitlab-org/
security-products
/codequality:0.85.9"
CODE_QUALITY_IMAGE
:
"
registry.gitlab.com/gitlab-org/
ci-cd
/codequality:0.85.9"
script
:
script
:
-
|
-
|
if ! docker info &>/dev/null; then
if ! docker info &>/dev/null; then
...
...
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