Skip to content

Commit

Permalink
Merge branch 'update-gitlab-ci' into 'master'
Browse files Browse the repository at this point in the history
Update .gitlab-ci.yml

See merge request solutions-architecture/verademo!43
  • Loading branch information
Chris Campbell committed Jul 19, 2018
2 parents 349e8be + d66a861 commit 6637f02
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ maven:
- mvn compile package
artifacts:
paths:
- target/
- 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"
-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

Expand All @@ -30,21 +30,17 @@ release-upload-for-sast:
- 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"
-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:
image: docker-ro.laputa.veracode.io/agora/buildbox:centos7-m3-python-latest
stage: scan
only:
- schedules
- master
before_script:
- pyenv install 3.6.1
- pyenv local 3.6.1
- git clone https://[email protected]/ccampbell/upload-and-scan.git
script:
- python upload-and-scan/uploadandscan.py $HOME/helpers/VeracodeJavaAPI.jar ${TEAM_ANALYSISCENTER_ID} ${TEAM_ANALYSISCENTER_KEY}
--breakthebuild --waitmax 3600 --waitinterval 60
-appname "Verademo" -createprofile false -autoscan true -filepath ./target/verademo.war -version "Job ${CI_JOB_ID} in pipeline ${CI_PIPELINE_ID}"
- 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

0 comments on commit 6637f02

Please sign in to comment.