Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UNL ITS
docker-ci
Commits
0669418b
Commit
0669418b
authored
5 years ago
by
Raul Barreras
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml, .gitlab/ci/test.dependency_check.yml files
parent
2435bd80
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!33
Resolve "Integrate dependency-check container with Sonarqube"
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
.gitlab/ci/test.dependency_check.yml
+16
-19
16 additions, 19 deletions
.gitlab/ci/test.dependency_check.yml
with
17 additions
and
20 deletions
.gitlab-ci.yml
+
1
−
1
View file @
0669418b
...
...
@@ -3,8 +3,8 @@ stages:
-
build
-
test
-
test_dependency_check_npm_install
-
test_dependency_check_sonar_scanner
-
test_dependency_check_dependency_check
-
test_dependency_check_sonar_scanner
-
publish
-
security
...
...
This diff is collapsed.
Click to expand it.
.gitlab/ci/test.dependency_check.yml
+
16
−
19
View file @
0669418b
variables
:
DEPENDENCY_CHECK_OUT_DIR
:
t/dependency-check/simple-app/dependency_check_results/
SRC_DIR
:
t/dependency-check/simple-app/
test_dependency_check_npm_install
:
stage
:
test_dependency_check_npm_install
tags
:
...
...
@@ -10,22 +14,6 @@ test_dependency_check_npm_install:
-
cd t/dependency-check/simple-app/
-
npm install
test_dependency_check_sonar_scanner
:
stage
:
test_dependency_check_sonar_scanner
image
:
name
:
its-registry.unl.edu/unl-its/docker-ci/static-code-analysis
cache
:
policy
:
pull
paths
:
-
t/dependency-check/simple-app/dependency_check_results/
variables
:
DEPENDENCY_CHECK_OUT_DIR
:
t/dependency-check/simple-app/dependency_check_results/
SRC_DIR
:
t/dependency-check/simple-app/
tags
:
-
docker
script
:
-
sonar-scanner -Dsonar.host.url=$SONAR_URL -Dsonar.projectKey=$CI_PROJECT_PATH_SLUG -Dsonar.sources=$SRC_DIR -Dsonar.login=$SONAR_TOKEN -Dsonar.dependencyCheck.reportPath=${DEPENDENCY_CHECK_OUT_DIR}/dependency-check-report.xml -Dsonar.dependencyCheck.htmlReportPath=${DEPENDENCY_CHECK_OUT_DIR}/dependency-check-report.html -Dsonar.scm.disabled=True
test_dependency_check_dependency_check
:
stage
:
test_dependency_check_dependency_check
image
:
...
...
@@ -34,9 +22,6 @@ test_dependency_check_dependency_check:
policy
:
pull
paths
:
-
t/dependency-check/simple-app/dependency_check_results/
variables
:
DEPENDENCY_CHECK_OUT_DIR
:
t/dependency-check/simple-app/dependency_check_results/
SRC_DIR
:
t/dependency-check/simple-app/
tags
:
-
docker
script
:
...
...
@@ -47,3 +32,15 @@ test_dependency_check_dependency_check:
-
t/dependency-check/simple-app/dependency_check_results/dependency-check-report.xml
expire_in
:
1 day
test_dependency_check_sonar_scanner
:
stage
:
test_dependency_check_sonar_scanner
image
:
name
:
its-registry.unl.edu/unl-its/docker-ci/static-code-analysis
cache
:
policy
:
pull
paths
:
-
t/dependency-check/simple-app/dependency_check_results/
tags
:
-
docker
script
:
-
sonar-scanner -Dsonar.host.url=$SONAR_URL -Dsonar.projectKey=$CI_PROJECT_PATH_SLUG -Dsonar.sources=$SRC_DIR -Dsonar.login=$SONAR_TOKEN -Dsonar.dependencyCheck.reportPath=${DEPENDENCY_CHECK_OUT_DIR}/dependency-check-report.xml -Dsonar.dependencyCheck.htmlReportPath=${DEPENDENCY_CHECK_OUT_DIR}/dependency-check-report.html -Dsonar.scm.disabled=True
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