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
349907e1
Commit
349907e1
authored
May 22, 2018
by
Olivier Gonzalez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep supporting old job name, add drepecation notice and change changelog type.
parent
fd645eeb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
5 deletions
+19
-5
doc/ci/examples/container_scanning.md
doc/ci/examples/container_scanning.md
+7
-0
doc/user/project/merge_requests/container_scanning.md
doc/user/project/merge_requests/container_scanning.md
+7
-0
ee/app/models/ee/ci/build.rb
ee/app/models/ee/ci/build.rb
+1
-1
ee/changelogs/unreleased/5778_rename_container_scanning_job_and_artifact-ee.yml
...ed/5778_rename_container_scanning_job_and_artifact-ee.yml
+1
-1
ee/spec/models/ci/pipeline_spec.rb
ee/spec/models/ci/pipeline_spec.rb
+3
-3
No files found.
doc/ci/examples/container_scanning.md
View file @
349907e1
...
...
@@ -56,4 +56,11 @@ so, the CI/CD job must be named `container_scanning` and the artifact path must
`gl-container-scanning-report.json`
.
[
Learn more on container scanning results shown in merge requests
](
https://docs.gitlab.com/ee/user/project/merge_requests/container_scanning.html
)
.
>**Note:**
Container Scanning was previously using
`sast:container`
for job name and
`gl-sast-container-report.json`
for the artifact name. While these old names
are still maintained they have been deprecated with GitLab 11.0 and may be removed
in next major release. You are advised to update your current
`.gitlab-ci.yml`
configuration to reflect that change.
[
ee
]:
https://about.gitlab.com/products/
doc/user/project/merge_requests/container_scanning.md
View file @
349907e1
...
...
@@ -33,6 +33,13 @@ GitLab will then check this file and show the information inside the merge reque
For more information on how the
`container_scanning`
job should look like, check the
example on
[
analyzing a Docker image for vulnerabilities
][
cc-docs
]
.
>**Note:**
Container Scanning was previously using
`sast:container`
for job name and
`gl-sast-container-report.json`
for the artifact name. While these old names
are still maintained they have been deprecated with GitLab 11.0 and may be removed
in next major release. You are advised to update your current
`.gitlab-ci.yml`
configuration to reflect that change.
[
ee-3672
]:
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3672
[
ee
]:
https://about.gitlab.com/products/
[
ci
]:
../../../ci/README.md
...
...
ee/app/models/ee/ci/build.rb
View file @
349907e1
...
...
@@ -23,7 +23,7 @@ module EE
scope
:sast
,
->
{
where
(
name:
'sast'
)
}
scope
:dependency_scanning
,
->
{
where
(
name:
'dependency_scanning'
)
}
scope
:license_management
,
->
{
where
(
name:
'license_management'
)
}
scope
:sast_container
,
->
{
where
(
name:
'container_scanning'
)
}
scope
:sast_container
,
->
{
where
(
name:
%w[sast:container container_scanning]
)
}
scope
:dast
,
->
{
where
(
name:
'dast'
)
}
after_save
:stick_build_if_status_changed
...
...
ee/changelogs/unreleased/5778_rename_container_scanning_job_and_artifact.yml
→
ee/changelogs/unreleased/5778_rename_container_scanning_job_and_artifact
-ee
.yml
View file @
349907e1
...
...
@@ -2,4 +2,4 @@
title
:
Rename Container Scanning job and artifact
merge_request
:
5770
author
:
type
:
chang
ed
type
:
deprecat
ed
ee/spec/models/ci/pipeline_spec.rb
View file @
349907e1
...
...
@@ -24,7 +24,7 @@ describe Ci::Pipeline do
dependency_scanning_artifact:
[
Ci
::
Build
::
DEPENDENCY_SCANNING_FILE
,
'dependency_scanning'
],
license_management_artifact:
[
Ci
::
Build
::
LICENSE_MANAGEMENT_FILE
,
'license_management'
],
# sast_container_artifact is deprecated and replaced with container_scanning_artifact (#5778)
sast_container_artifact:
[
Ci
::
Build
::
SAST_CONTAINER_FILE
,
'
container_scanning
'
],
sast_container_artifact:
[
Ci
::
Build
::
SAST_CONTAINER_FILE
,
'
sast:container
'
],
container_scanning_artifact:
[
Ci
::
Build
::
CONTAINER_SCANNING_FILE
,
'container_scanning'
],
dast_artifact:
[
Ci
::
Build
::
DAST_FILE
,
'dast'
]
}.
freeze
...
...
@@ -61,7 +61,7 @@ describe Ci::Pipeline do
end
end
%w(sast dast performance sast_container)
.
each
do
|
type
|
%w(sast dast performance sast_container
container_scanning
)
.
each
do
|
type
|
method
=
"has_
#{
type
}
_data?"
describe
"#
#{
method
}
"
do
...
...
@@ -75,7 +75,7 @@ describe Ci::Pipeline do
end
end
%w(sast dast performance sast_container)
.
each
do
|
type
|
%w(sast dast performance sast_container
container_scanning
)
.
each
do
|
type
|
method
=
"expose_
#{
type
}
_data?"
describe
"#
#{
method
}
"
do
...
...
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