gitlab-ultimate.gitlab-ci.yml 1.22 KB
Newer Older
1
2
include:
  - template: Dependency-Scanning.gitlab-ci.yml
3
  - template: SAST.gitlab-ci.yml
4
5
  - template: License-Management.gitlab-ci.yml

6
7
# --------------------------------------------------------------------------------

8
9
dependency_scanning:
  stage: test
10
11
12
  tags: ['docker-runner']
  variables:
    MAVEN_REPO_PATH: "$CI_PROJECT_DIR/.m2/repository"
13
    MAVEN_CLI_OPTS: "--batch-mode --settings=$CI_PROJECT_DIR/.mvn/community-maven.settings.xml -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -DskipTests=true"
14
    DS_DISABLE_DIND: "true"
15

16
17
# --------------------------------------------------------------------------------

18
19
sast:
  stage: test
20
  tags: ['docker-runner']
21
  variables:
22
23
    MAVEN_CLI_OPTS: "--batch-mode --settings=$CI_PROJECT_DIR/.mvn/community-maven.settings.xml -DskipTests=true"
    SAST_DISABLE_DIND: "true"
24

25
# --------------------------------------------------------------------------------
26
27
28

license_management:
  stage: test
29
30
31
32
33
34
35
  tags: ['docker-runner']
  cache:
    paths:
      - $MAVEN_REPO_PATH

  variables:
    MAVEN_REPO_PATH: "$CI_PROJECT_DIR/.m2/repository"
36
    MAVEN_CLI_OPTS: "--batch-mode --settings=$CI_PROJECT_DIR/.mvn/community-maven.settings.xml -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -DskipTests=true"