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

Update .gitlab/ci/test.dependency_check.yml

parent 94cf5ea0
No related branches found
No related tags found
1 merge request!33Resolve "Integrate dependency-check container with Sonarqube"
test:dependency_check:npm_install:
stage: test
stages:
- test_dependency_check_npm_install
- test_dependency_check_sonar_scanner
- test_dependency_check_dependency_check
test_dependency_check_npm_install:
stage: test_dependency_check_npm_install
tags:
- docker
image: node:alpine
......@@ -10,9 +15,8 @@ test:dependency_check:npm_install:
- cd t/dependency-check/simple-app/
- npm install
test:dependency_check:sonar-scanner:
stage: test
needs: ["test:dependency_check: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:
......@@ -27,9 +31,8 @@ test:dependency_check:sonar-scanner:
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
needs: ["test:dependency_check:sonar-scanner"]
test_dependency_check_dependency_check:
stage: test_dependency_check_dependency_check
image:
name: its-registry.unl.edu/unl-its/docker-ci/dependency-check
cache:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment