Commit 0d8160f3 authored by David Diederich's avatar David Diederich
Browse files

Added maven flags to various build steps

parent f7645aeb
fossa-analyze:
extends: .maven
image: divido2/fossa-cli
stage: test
tags: ['docker-runner']
......@@ -7,10 +8,8 @@ fossa-analyze:
variables:
- $FOSSA_API_KEY
variables:
MAVEN_BINARY: mvnw
script:
- $MAVEN install -DskipTests=true
- fossa analyze --project-url ${CI_PROJECT_URL}
- fossa test
......
......@@ -3,10 +3,15 @@ include:
- template: Dependency-Scanning.gitlab-ci.yml
- template: License-Management.gitlab-ci.yml
# --------------------------------------------------------------------------------
# https://gitlab.com/gitlab-org/gitlab/issues/34576
dependency_scanning:
stage: test
tags: ['docker-dind-runner']
# --------------------------------------------------------------------------------
sast:
stage: test
tags: ['docker-runner']
......@@ -20,6 +25,16 @@ sast:
MAVEN_CLI_OPTS: "--batch-mode --settings=$CI_PROJECT_DIR/.mvn/gitlab-maven.settings.xml -Dmaven.repo.local=$MAVEN_REPO_PATH"
SAST_DISABLE_DIND: "true"
# --------------------------------------------------------------------------------
license_management:
stage: test
tags: ['docker-dind-runner']
tags: ['docker-runner']
cache:
paths:
- $MAVEN_REPO_PATH
- ./*/target
variables:
MAVEN_REPO_PATH: "$CI_PROJECT_DIR/.m2/repository"
MAVEN_CLI_OPTS: "--batch-mode --settings=$CI_PROJECT_DIR/.mvn/gitlab-maven.settings.xml -Dmaven.repo.local=$MAVEN_REPO_PATH -DskipTests=true"
......@@ -38,7 +38,7 @@ compile:
script:
- $MAVEN compile
unit_tests:
unit-tests:
extends: .maven
stage: test
allow_failure: true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment