-
Notifications
You must be signed in to change notification settings - Fork 0
/
episerver-checkout-Pro-CI.yml
76 lines (60 loc) · 2.02 KB
/
episerver-checkout-Pro-CI.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
trigger:
- hotfix/*
- release/*
- refs/tags/*
pr:
- master
pool:
vmImage: 'windows-2019'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
GitVersion.SemVer: ''
steps:
- task: GitVersion@5
displayName: GitVersion
inputs:
useConfigFile: true
configFilePath: GitVersion.yml
- task: Assembly-Info-NetFramework@2
inputs:
Path: '$(Build.SourcesDirectory)'
FileNames: '**\AssemblyInfo.cs'
InsertAttributes: false
FileEncoding: 'auto'
WriteBOM: false
VersionNumber: '$(GitVersion.AssemblySemVer)'
FileVersionNumber: '$(GitVersion.AssemblySemVer)'
LogLevel: 'verbose'
FailOnWarning: false
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
feedsToUse: config
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:Version=$(GitVersion.NuGetVersionV2) /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation=“$(build.artifactstagingdirectory)\\”'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: NuGetCommand@2
inputs:
command: 'pack'
packagesToPack: '**/SwedbankPay.Episerver.Checkout.csproj;**/SwedbankPay.Episerver.Checkout.CommerceManager.csproj'
packDestination: '$(Build.ArtifactStagingDirectory)/packages'
versioningScheme: byEnvVar
versionEnvVar: 'GitVersion.NuGetVersionV2'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
- task: NuGetCommand@2
condition: and(succeeded(), in(variables['Build.Reason'], 'Manual', 'IndividualCI', 'BatchedCI'))
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '839c5cac-f0d2-4099-90f3-efa993938d92/0bf3f093-8bec-44b0-bcb4-8598403b0175'