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
acfa84f0
Commit
acfa84f0
authored
Jun 25, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
767a52c0
e6a41c14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
82 deletions
+25
-82
.gitlab/ci/global.gitlab-ci.yml
.gitlab/ci/global.gitlab-ci.yml
+12
-2
.gitlab/ci/reports.gitlab-ci.yml
.gitlab/ci/reports.gitlab-ci.yml
+8
-80
changelogs/unreleased/60879-fix-reports-timing-out.yml
changelogs/unreleased/60879-fix-reports-timing-out.yml
+5
-0
No files found.
.gitlab/ci/global.gitlab-ci.yml
View file @
acfa84f0
...
...
@@ -28,11 +28,15 @@
policy
:
pull
stage
:
test
.dedicated-no-docs-pull-cache-job
:
extends
:
.dedicated-pull-cache-job
.no-docs
:
except
:
-
/(^docs[\/-].*|.*-docs$)/
.dedicated-no-docs-pull-cache-job
:
extends
:
-
.dedicated-pull-cache-job
-
.no-docs
.dedicated-no-docs-and-no-qa-pull-cache-job
:
extends
:
.dedicated-pull-cache-job
except
:
...
...
@@ -45,6 +49,12 @@
variables
:
SETUP_DB
:
"
false"
# Jobs that need a dedicated runner, with no cache
.dedicated-no-docs
:
extends
:
-
.dedicated-runner
-
.no-docs
.single-script-job-dedicated-runner
:
extends
:
.dedicated-runner
image
:
ruby:2.6-alpine
...
...
.gitlab/ci/reports.gitlab-ci.yml
View file @
acfa84f0
include
:
-
template
:
Code-Quality.gitlab-ci.yml
-
template
:
Security/SAST.gitlab-ci.yml
-
template
:
Security/Dependency-Scanning.gitlab-ci.yml
code_quality
:
extends
:
.dedicated-no-docs
-no-db-pull-cache-job
extends
:
.dedicated-no-docs
# gitlab-org runners set `privileged: false` but we need to have it set to true
# since we're using Docker in Docker
tags
:
[]
before_script
:
[]
cache
:
{}
dependencies
:
[]
variables
:
SETUP_DB
:
"
false"
sast
:
extends
:
.dedicated-no-docs-no-db-pull-cache-job
image
:
docker:stable
extends
:
.dedicated-no-docs
before_script
:
[]
tags
:
[]
variables
:
SAST_CONFIDENCE_LEVEL
:
2
DOCKER_DRIVER
:
overlay2
allow_failure
:
true
tags
:
[]
before_script
:
[]
cache
:
{}
dependencies
:
[]
services
:
-
docker:stable-dind
script
:
-
|
# this is required to avoid undesirable reset of Docker image ENV variables being set on build stage
function propagate_env_vars() {
CURRENT_ENV=$(printenv)
for VAR_NAME; do
echo $CURRENT_ENV | grep "${VAR_NAME}=" > /dev/null && echo "--env $VAR_NAME "
done
}
-
export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
-
|
docker run \
$(propagate_env_vars \
SAST_ANALYZER_IMAGES \
SAST_ANALYZER_IMAGE_PREFIX \
SAST_ANALYZER_IMAGE_TAG \
SAST_DEFAULT_ANALYZERS \
SAST_BRAKEMAN_LEVEL \
SAST_GOSEC_LEVEL \
SAST_FLAWFINDER_LEVEL \
SAST_DOCKER_CLIENT_NEGOTIATION_TIMEOUT \
SAST_PULL_ANALYZER_IMAGE_TIMEOUT \
SAST_RUN_ANALYZER_TIMEOUT \
) \
--volume "$PWD:/code" \
--volume /var/run/docker.sock:/var/run/docker.sock \
"registry.gitlab.com/gitlab-org/security-products/sast:$SP_VERSION" /app/bin/run /code
artifacts
:
reports
:
sast
:
gl-sast-report.json
dependency_scanning
:
extends
:
.dedicated-no-docs-no-db-pull-cache-job
image
:
docker:stable
variables
:
DOCKER_DRIVER
:
overlay2
allow_failure
:
true
tags
:
[]
before_script
:
[]
cache
:
{}
dependencies
:
[]
services
:
-
docker:stable-dind
script
:
-
export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
-
|
# this is required to avoid undesirable reset of Docker image ENV variables being set on build stage
function propagate_env_vars() {
CURRENT_ENV=$(printenv)
for VAR_NAME; do
echo $CURRENT_ENV | grep "${VAR_NAME}=" > /dev/null && echo "--env $VAR_NAME "
done
}
-
|
docker run \
$(propagate_env_vars \
DS_ANALYZER_IMAGES \
DS_ANALYZER_IMAGE_PREFIX \
DS_ANALYZER_IMAGE_TAG \
DS_DEFAULT_ANALYZERS \
DEP_SCAN_DISABLE_REMOTE_CHECKS \
DS_DOCKER_CLIENT_NEGOTIATION_TIMEOUT \
DS_PULL_ANALYZER_IMAGE_TIMEOUT \
DS_RUN_ANALYZER_TIMEOUT \
) \
--volume "$PWD:/code" \
--volume /var/run/docker.sock:/var/run/docker.sock \
"registry.gitlab.com/gitlab-org/security-products/dependency-scanning:$SP_VERSION" /code
artifacts
:
reports
:
dependency_scanning
:
gl-dependency-scanning-report.json
tags
:
[]
extends
:
.dedicated-no-docs
changelogs/unreleased/60879-fix-reports-timing-out.yml
0 → 100644
View file @
acfa84f0
---
title
:
Fix reports jobs timing out because of cache
merge_request
:
29780
author
:
type
:
fixed
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