gitlab-ultimate.gitlab-ci.yml 1.32 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-dind-runner']
21
22
23
24
  cache:
    paths:
      - $MAVEN_REPO_PATH

25
  variables:
26
27
    MAVEN_REPO_PATH: "/tmp/app/.m2/repository"
    MAVEN_CLI_OPTS: "--batch-mode --settings=/tmp/app/.mvn/community-maven.settings.xml -Dmaven.repo.local=/tmp/app/.m2/repository -DskipTests=true"
28

29
# --------------------------------------------------------------------------------
30
31
32

license_management:
  stage: test
33
34
35
36
37
38
39
  tags: ['docker-runner']
  cache:
    paths:
      - $MAVEN_REPO_PATH

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