-
Notifications
You must be signed in to change notification settings - Fork 10
/
azure-pipelines.yml
61 lines (57 loc) · 1.87 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
name: $(GITVERSION_FullSemVer)
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'any cpu'
buildConfiguration: 'Release'
stages:
- stage: Build
jobs:
- template: templates/commonbuildtasks.yml
- stage: PublishtoPrivateFeed
displayName: Publish to Private Feed
jobs:
- job: PublishPrivateJob
displayName: Publish to Private Feed
steps:
- checkout: none
- download: current
displayName: Download NuGet package artifact
artifact: Capgemini.Xrm.DataMigration.Engine
- task: NuGetToolInstaller@1
inputs:
versionSpec: '5.x'
- task: NuGetCommand@2
displayName: 'Push to private feed'
inputs:
command: push
packagesToPush: '$(Pipeline.Workspace)/Capgemini.Xrm.DataMigration.Engine/*.nupkg'
publishVstsFeed: 'e64f1ace-b73a-42b0-8b8e-4b2fdbdac2c9'
- stage: PublishToPublicFeed
displayName: Publish to Public Feed
dependsOn: PublishtoPrivateFeed
condition: succeeded()
jobs:
- deployment:
environment: 'nuget-org'
strategy:
runOnce:
deploy:
steps:
- checkout: none
- download: current
displayName: Download NuGet package artifact
artifact: Capgemini.Xrm.DataMigration.Engine
- task: NuGetToolInstaller@1
inputs:
versionSpec: '5.x'
- task: NuGetCommand@2
displayName: 'Push NuGet Package'
inputs:
command: push
packagesToPush: $(Pipeline.Workspace)/Capgemini.Xrm.DataMigration.Engine/*.nupkg
nuGetFeedType: external
publishFeedCredentials: Capgemini_UK