66 строки
2.1 KiB
YAML
66 строки
2.1 KiB
YAML
|
|
strategy:
|
|
matrix:
|
|
Linux:
|
|
imageName: 'ubuntu-latest'
|
|
macOS:
|
|
imageName: 'macOS-latest'
|
|
Windows:
|
|
imageName: 'windows-latest'
|
|
|
|
trigger:
|
|
- master
|
|
|
|
pool:
|
|
vmImage: $(imageName)
|
|
|
|
variables:
|
|
LoggingOptions: '-Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
|
|
|
|
steps:
|
|
- task: Maven@3
|
|
displayName: 'Build SDK samples'
|
|
inputs:
|
|
mavenPomFile: 'sdk/pom.xml'
|
|
goals: 'package'
|
|
options: '-DpackageOutputDirectory=$(Build.ArtifactStagingDirectory)" -am'
|
|
mavenOptions: '$(LoggingOptions)'
|
|
publishJUnitResults: true
|
|
testResultsFiles: '**/surefire-reports/TEST-*.xml'
|
|
findBugsRunAnalysis: true
|
|
|
|
- task: Maven@3
|
|
displayName: 'Build secure application model CPV sample'
|
|
inputs:
|
|
mavenPomFile: 'secure-app-model/keyvault/cpvsample/pom.xml'
|
|
goals: 'package'
|
|
options: '-DpackageOutputDirectory=$(Build.ArtifactStagingDirectory)" -am'
|
|
mavenOptions: '$(LoggingOptions)'
|
|
publishJUnitResults: true
|
|
testResultsFiles: '**/surefire-reports/TEST-*.xml'
|
|
findBugsRunAnalysis: true
|
|
|
|
- task: Maven@3
|
|
displayName: 'Build secure application model CSP sample'
|
|
inputs:
|
|
mavenPomFile: 'secure-app-model/keyvault/cspsample/pom.xml'
|
|
goals: 'package'
|
|
options: '-DpackageOutputDirectory=$(Build.ArtifactStagingDirectory)" -am'
|
|
mavenOptions: '$(LoggingOptions)'
|
|
publishJUnitResults: true
|
|
testResultsFiles: '**/surefire-reports/TEST-*.xml'
|
|
findBugsRunAnalysis: true
|
|
|
|
- task: Maven@3
|
|
displayName: 'Build secure application model partner consent sample'
|
|
inputs:
|
|
mavenPomFile: 'secure-app-model/keyvault/partnerconsent/pom.xml'
|
|
goals: 'package'
|
|
options: '-DpackageOutputDirectory=$(Build.ArtifactStagingDirectory)" -am'
|
|
mavenOptions: '$(LoggingOptions)'
|
|
publishJUnitResults: true
|
|
testResultsFiles: '**/surefire-reports/TEST-*.xml'
|
|
findBugsRunAnalysis: true
|
|
|
|
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
|
displayName: 'Component Detection' |