forked from GitHub-workflow-APP/verademo
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
46 lines (41 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
---
image: docker-ro.laputa.veracode.io/agora/buildbox:centos7-m1-java8-latest
stages:
- build
- scan
maven:
stage: build
script:
- yum -y install maven
- mvn compile package
artifacts:
paths:
- target/verademo.war
development-upload-for-sast:
stage: scan
only:
- development
script:
- java -jar $HOME/helpers/VeracodeJavaAPI.jar -vid ${TEAM_ANALYSISCENTER_ID} -vkey ${TEAM_ANALYSISCENTER_KEY}
-action UploadAndScan -appname "Verademo" -createprofile false -autoscan true -sandboxname "gitlab-development"
-filepath ./target/verademo.war -version "Job ${CI_JOB_ID} in pipeline ${CI_PIPELINE_ID}"
allow_failure: true
release-upload-for-sast:
stage: scan
only:
- release
script:
- java -jar $HOME/helpers/VeracodeJavaAPI.jar -vid ${TEAM_ANALYSISCENTER_ID} -vkey ${TEAM_ANALYSISCENTER_KEY}
-action UploadAndScan -appname "Verademo" -createprofile false -autoscan true -sandboxname "gitlab-release"
-filepath ./target/verademo.war -version "Job ${CI_JOB_ID} in pipeline ${CI_PIPELINE_ID}"
allow_failure: true
policy-upload-for-sast:
stage: scan
only:
- schedules
- master
script:
- java -jar $HOME/helpers/VeracodeJavaAPI.jar -vid ${TEAM_ANALYSISCENTER_ID} -vkey ${TEAM_ANALYSISCENTER_KEY}
-action UploadAndScan -appname "Verademo" -createprofile false -autoscan true
-filepath ./target/verademo.war -version "Job ${CI_JOB_ID} in pipeline ${CI_PIPELINE_ID}"
-scantimeout 15