Skip to content
Snippets Groups Projects
Commit 0c137c74 authored by Raul Barreras's avatar Raul Barreras
Browse files

Update .gitlab-ci.yml

parent 0e9ac7b3
No related branches found
No related tags found
1 merge request!33Resolve "Integrate dependency-check container with Sonarqube"
......@@ -3,8 +3,8 @@ stages:
- build
- test
- test:npm_install
- test:sonar-scanner
- test:dependency_checker
- test:sonar-scanner
- publish
- security
......@@ -56,9 +56,8 @@ Test Dependency Checker sonar-scanner:
name: its-registry.unl.edu/unl-its/docker-ci/static-code-analysis
cache:
policy: pull
variables:
DEPENDENCY_CHECK_OUT_DIR: /tmp/dependency_check_results
SRC_DIR: t/dependency-check/simple-app/
paths:
- t/dependency-check/simple-app/dependency_check_results/
tags:
- docker
script:
......@@ -72,14 +71,20 @@ Test Dependency Checker dependency_check:
cache:
policy: pull
paths:
- t/dependency-check/simple-app/
- t/dependency-check/simple-app/dependency_check_results/
variables:
DEPENDENCY_CHECK_OUT_DIR: /tmp/dependency_check_results
DEPENDENCY_CHECK_OUT_DIR: t/dependency-check/simple-app/dependency_check_results/
SRC_DIR: t/dependency-check/simple-app/
tags:
- docker
script:
- dependency-check --format ALL -s ${SRC_DIR} --out ${DEPENDENCY_CHECK_OUT_DIR} --project ${CI_PROJECT_NAMESPACE} -n
artifacts:
paths:
- t/dependency-check/simple-app/dependency_check_results/dependency-check-report.html
- t/dependency-check/simple-app/dependency_check_results/dependency-check-report.xml
expire_in: 1 day
.Test Dependency Checker:
stage: test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment