/
azure-pipelines.yml
102 lines (86 loc) · 2.86 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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# ASP.NET
# Build and test ASP.NET projects.
# Add steps that publish symbols, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4
trigger:
- master
pr: none
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
PackageVersion: '2.0.$(Build.BuildID).0'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: Assembly-Info-NetFramework@2
inputs:
Path: '$(Build.SourcesDirectory)'
FileNames: '**\AssemblyInfo.cs'
InsertAttributes: false
FileEncoding: 'auto'
WriteBOM: false
Title: 'Code Endeavors Resource Manager'
Description: 'Code Endeavors Resource Manager'
Company: 'Code Endeavors, Inc.'
VersionNumber: '$(PackageVersion)'
FileVersionNumber: '$(PackageVersion)'
InformationalVersion: '$(PackageVersion)'
LogLevel: 'verbose'
FailOnWarning: false
- task: VSBuild@1
inputs:
solution: '**\*.sln'
- task: NuGetCommand@2
inputs:
command: pack
packagesToPack: '$(Build.SourcesDirectory)/redist/CodeEndeavors.ResourceManager.File.nuspec'
versioningScheme: byEnvVar
versionEnvVar: 'PackageVersion'
packDestination: '$(Build.SourcesDirectory)/redist'
- task: NuGetCommand@2
inputs:
command: pack
packagesToPack: '$(Build.SourcesDirectory)/redist/CodeEndeavors.ResourceManager.ServiceHost.nuspec'
versioningScheme: byEnvVar
versionEnvVar: 'PackageVersion'
packDestination: '$(Build.SourcesDirectory)/redist'
- task: NuGetCommand@2
inputs:
command: pack
packagesToPack: '$(Build.SourcesDirectory)/redist/CodeEndeavors.ResourceManager.SQLServer.nuspec'
versioningScheme: byEnvVar
versionEnvVar: 'PackageVersion'
packDestination: '$(Build.SourcesDirectory)/redist'
- task: NuGetCommand@2
inputs:
command: pack
packagesToPack: '$(Build.SourcesDirectory)/redist/CodeEndeavors.Services.ResourceManager.ClientX.nuspec'
versioningScheme: byEnvVar
versionEnvVar: 'PackageVersion'
packDestination: '$(Build.SourcesDirectory)/redist'
- task: NuGetCommand@2
inputs:
command: pack
packagesToPack: '$(Build.SourcesDirectory)/redist/CodeEndeavors.ResourceManager.nuspec'
versioningScheme: byEnvVar
versionEnvVar: 'PackageVersion'
packDestination: '$(Build.SourcesDirectory)/redist'
# - task: NuGetCommand@2
# displayName: 'NuGet push'
# inputs:
# command: 'push'
# packagesToPush: '$(Build.SourcesDirectory)/redist/*.nupkg'
# nuGetFeedType: 'internal'
# publishVstsFeed: 'ac758a19-2517-4b8d-9d83-43bd02106e50'
# allowPackageConflicts: false
- task: NuGetCommand@2
inputs:
command: 'push'
packagesToPush: '$(Build.SourcesDirectory)/redist/*.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'Nuget.org'