-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zestrella
committed
Aug 9, 2021
1 parent
804eb9c
commit 2e70971
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |