gitlab-ultimate.gitlab-ci.yml 947 Bytes
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
.ultimate-scanner-config:
9
  stage: test
10
  tags: ['docker-runner']
11
12
13
  cache:
    paths:
      - $MAVEN_REPO_PATH
14

15
  variables:
16
    MAVEN_CLI_OPTS: "--batch-mode --settings=$CI_PROJECT_DIR/.mvn/community-maven.settings.xml -DskipTests=true"
17
    DS_DISABLE_DIND: "true"
18
    SAST_DISABLE_DIND: "true"
19

20
  before_script:
21
22
23
    - mkdir -p ~/.m2/repository
    - cp -R .m2/repository/ ~/.m2/repository/
    - rm -rf .m2/repository
24
25

  after_script:
26
    - cp -R ~/.m2/repository/ .m2/repository/
27

28
# --------------------------------------------------------------------------------
29

30
31
dependency_scanning:
  extends: .ultimate-scanner-config
32

33
34
35
36
37
sast:
  extends: .ultimate-scanner-config

license_management:
  extends: .ultimate-scanner-config