-
Notifications
You must be signed in to change notification settings - Fork 7
/
azure-pipelines_backup.yml
87 lines (76 loc) · 2.37 KB
/
azure-pipelines_backup.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
# trigger:
# - master
stages:
- stage: 'build'
displayName: build
jobs:
- job: 'b1'
strategy:
maxParallel: 2
pool:
vmImage: 'ubuntu-latest'
variables:
- name: 'buildConfiguration'
value: 'Release'
steps:
- task: DotNetCoreCLI@2
displayName: 'LSG.GenericCrud - dotnet build $(buildConfiguration)'
inputs:
command: 'build'
projects: 'LSG.GenericCrud/*.csproj'
arguments: '-c $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'LSG.GenericCrud.Dto - dotnet build $(buildConfiguration)'
inputs:
command: 'build'
projects: 'LSG.GenericCrud.Dto/*.csproj'
arguments: '-c $(buildConfiguration)'
- task: CopyFiles@2
inputs:
Contents: '**/*.nupkg'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
flattenFolders: true
- task: PublishBuildArtifacts@1
displayName: 'publish artifacts'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
# - task: NuGetCommand@2
# inputs:
# command: 'push'
# packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
# nuGetFeedType: 'external'
# publishFeedCredentials: 'lonesomegeek'
# verbosityPush: 'Normal'
- stage: "deployment"
#dependsOn: 'build'
displayName: "deployment"
jobs:
- deployment: "release"
displayName: "release"
pool:
vmImage: 'ubuntu-latest'
environment: 'nuget production'
strategy:
runOnce:
deploy:
steps:
- script: 'echo hello'
# - stage: 'deploy'
# displayName: deploy
# dependsOn: 'build'
# jobs:
# - deployment: 'production'
# pool:
# vmImage: 'ubuntu-latest'
# environment: 'nuget production'
# strategy:
# runOnce:
# deploy:
# steps:
# - task: NuGetCommand@2
# inputs:
# command: 'push'
# packagesToPush: '$(Agent.BuildDirectory)/**/*.nupkg;!$(Agent.BuildDirectory)/**/*.symbols.nupkg'
# nuGetFeedType: 'external'
# publishFeedCredentials: 'lonesomegeek'
# verbosityPush: 'Normal'