forked from hmcts/vh-acceptance-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
51 lines (43 loc) · 1.29 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
parameters:
- name: vstsFeed
type: string
default: 3f69a23d-fbc7-4541-afc7-4cccefcad773/e48b2732-376c-4052-ba97-b28783c9bab5
trigger:
branches:
include:
- master
pr:
- master
resources:
containers:
- container: dotnetsdk
image: sspublicsbox.azurecr.io/vh/dotnet:3.1.102
endpoint: sspublicsbox
pool:
vmImage: ubuntu-16.04
container: dotnetsdk
steps:
- task: gittools.gitversion.gitversion-task.GitVersion@5
displayName: GitVersion
inputs:
configFilePath: GitVersion.yml
- task: DotNetCoreCLI@2
displayName: Restore Dependencies
inputs:
command: restore
projects: '**/AcceptanceTests.Common/*.csproj'
vstsFeed: '${{ parameters.vstsFeed }}'
verbosityRestore: Minimal
- task: DotNetCoreCLI@2
displayName: Create NuGet Package
inputs:
projects: '**/AcceptanceTests.Common/*.csproj'
arguments: '--configuration release /p:Version="$(GitVersion.NuGetVersion)" /p:PackageOutputPath="$(Build.ArtifactStagingDirectory)"'
versioningScheme: byBuildNumber
- task: DotNetCoreCLI@2
displayName: Push Package to VH NuGet Repo
inputs:
command: push
searchPatternPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
publishVstsFeed: '3f69a23d-fbc7-4541-afc7-4cccefcad773/e48b2732-376c-4052-ba97-b28783c9bab5'
versioningScheme: byBuildNumber