-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
34 lines (30 loc) · 788 Bytes
/
.gitlab-ci.yml
File metadata and controls
34 lines (30 loc) · 788 Bytes
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
include:
- local: '/devops-integrations/gitlab/debricked-sca.yml'
- local: '/devops-integrations/gitlab/fortify-sast-scancentral.yml'
- local: '/devops-integrations/gitlab/fortify-dast-scancentral.yml'
#- local: '/devops-integrations/gitlab/fortify-sast-fod.yml'
stages:
- build
- deploy
- test
build:
stage: build
image: maven:3.8.6-eclipse-temurin-8
script:
- echo Building project...
- mvn -Pjar clean package
- mvn dependency:tree
-DoutputFile=.debricked-maven-dependencies.tgf
-DoutputType=tgf
when: manual
artifacts:
paths:
- .debricked-maven-dependencies.tgf
- /
expire_in: 3 days
when: on_success
deploy:
stage: deploy
needs: [build]
script:
- echo 'Simulating deployment of application...'