Skip to content

Commit

Permalink
Adding azure-pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
zestrella committed Aug 9, 2021
1 parent 804eb9c commit 2e70971
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
# This is an example of using VeraDemo Java test application with the Veracode Static Pipeline scanner. A Veracode subscription is required.
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
steps:
- task: Maven@3
displayName: Build with Maven
inputs:
mavenPomFile: 'app/pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package'
- task: Bash@3
displayName: Veracode Pipeline
inputs:
targetType: 'inline'
script: |
curl -sSO https://downloads.veracode.com/securityscan/pipeline-scan-LATEST.zip
unzip -o pipeline-scan-LATEST.zip
java -jar pipeline-scan.jar -vid $(VERACODE_API_ID) -vkey $(VERACODE_API_KEY) -f /home/vsts/work/1/s/app/target/verademo.war || true
- publish: $(System.DefaultWorkingDirectory)/results.json
artifact: VeracodeBaseline

0 comments on commit 2e70971

Please sign in to comment.