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