-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
36 lines (31 loc) · 962 Bytes
/
azure-pipelines.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
trigger: none
jobs:
- job: buildandtest
pool:
name: 'Self-hosted'
steps:
- task: DotNetCoreCLI@2
displayName: 'Restore NuGet packages - dotnet restore'
inputs:
command: 'restore'
projects: '**/*.csproj'
- task: DotNetCoreCLI@2
displayName: Build the project - dotnet build
inputs:
projects: '**/*.csproj'
arguments: '--configuration $(buildConfiguration) --no-restore'
- task: dependency-check-build-task@6
displayName: Dependency Checker - Security
continueOnError: true
inputs:
projectName: 'Dependency.Check'
scanPath: '**/*.csproj'
format: 'HTML, JSON, JUNIT'
failOnCVSS: '8'
nvdApiKey: $(nvdapi)
- task: PublishTestResults@2
displayName: "Publish Dependency Checks Tests Results"
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '$(Agent.BuildDirectory)/TestResults/dependency-check/*junit.xml'
mergeTestResults: true