-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy path.gitlab-ci.yml
51 lines (46 loc) · 1.57 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Comment/Uncomment the below depending on whether you are using Fortify on Demand
# or ScanCentral SAST/DAST.
include:
#- local: '/devops-integrations/gitlab/debricked-sca.yml'
#- local: '/devops-integrations/gitlab/fortify-sca.yml'
#- local: '/devops-integrations/gitlab/fortify-sast-scancentral.yml'
#- local: '/devops-integrations/gitlab/fortify-dast-api-scancentral.yml'
#- local: '/devops-integrations/gitlab/fortify-dast-web-scancentral.yml'
- local: '/devops-integrations/gitlab/fortify-sast-fod.yml'
- local: '/devops-integrations/gitlab/fortify-dast-fod.yml'
#- local: '/devops-integrations/gitlab/fortify-ssc-gate.yml'
- local: '/devops-integrations/gitlab/fortify-fod-gate.yml'
stages:
- build
- deploy
- test
- dast
- report
build:
stage: build
image: maven:3.9-eclipse-temurin-11
script:
- echo Building project...
- mvn -Dskip.unit.tests=false -DfailIfNoTests=false -Dtest="*,!PasswordConstraintValidatorTest,!UserServiceTest,!DefaultControllerTest" -P jar -B verify package --file pom.xml
- mvn dependency:tree
-DoutputFile=.debricked-maven-dependencies.tgf
-DoutputType=tgf
#when: manual
artifacts:
paths:
- .debricked-maven-dependencies.tgf
- target/surefire-reports/TEST-*.xml
expire_in: 3 days
reports:
junit: target/surefire-reports/TEST-*.xml
when: always
deploy:
stage: deploy
needs: [build]
script:
- echo 'Simulating deployment of application...'
functional-test:
stage: test
needs: [deploy]
script:
- echo 'Simulating functional test of application...'