-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
156 lines (153 loc) · 8.09 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
batch: true
pool:
vmImage: "ubuntu-latest"
steps:
- script: |
dotnet restore $(System.DefaultWorkingDirectory)/Sheaft.sln
dotnet build $(System.DefaultWorkingDirectory)/Sheaft.sln -c Release --no-restore
dotnet test $(System.DefaultWorkingDirectory)/Sheaft.sln -c Release --no-restore --no-build
dotnet publish $(System.DefaultWorkingDirectory)/Sheaft.Web.Api/Sheaft.Web.Api.csproj -c Release --no-restore --no-build --output publish_output/Sheaft.Web.Api/release/
dotnet publish $(System.DefaultWorkingDirectory)/Sheaft.Web.Jobs/Sheaft.Web.Jobs.csproj -c Release --no-restore --no-build --output publish_output/Sheaft.Web.Jobs/release/
dotnet publish $(System.DefaultWorkingDirectory)/Sheaft.Web.Payment/Sheaft.Web.Payment.csproj -c Release --no-restore --no-build --output publish_output/Sheaft.Web.Payment/release/
dotnet publish $(System.DefaultWorkingDirectory)/Sheaft.Web.Signalr/Sheaft.Web.Signalr.csproj -c Release --no-restore --no-build --output publish_output/Sheaft.Web.Signalr/release/
dotnet publish $(System.DefaultWorkingDirectory)/Sheaft.Web.Manage/Sheaft.Web.Manage.csproj -c Release --no-restore --no-build --output publish_output/Sheaft.Web.Manage/release/
- task: ArchiveFiles@2
displayName: "Archive GRAPHQL"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Api/release"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Api/build$(Build.BuildId).zip"
- task: DeleteFiles@1
displayName: "Delete GRAPHQL NewRelic"
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Api/release/newrelic'
Contents: '*'
- task: ArchiveFiles@2
displayName: "Archive GRAPHQL WithoutMonitoring"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Api/release"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Api/build$(Build.BuildId)-staging.zip"
- task: PublishBuildArtifacts@1
displayName: "Publish GRAPHQL"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Api/build$(Build.BuildId).zip'
artifactName: 'sheaft-graphql'
- task: PublishBuildArtifacts@1
displayName: "Publish GRAPHQL WithoutMonitoring"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Api/build$(Build.BuildId)-staging.zip'
artifactName: 'sheaft-graphql-staging'
- task: ArchiveFiles@2
displayName: "Archive JOBS"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Jobs/release"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Jobs/build$(Build.BuildId).zip"
- task: DeleteFiles@1
displayName: "Delete JOBS NewRelic"
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Jobs/release/newrelic'
Contents: '*'
- task: ArchiveFiles@2
displayName: "Archive JOBS WithoutMonitoring"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Jobs/release"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Jobs/build$(Build.BuildId)-staging.zip"
- task: PublishBuildArtifacts@1
displayName: "Publish JOBS"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Jobs/build$(Build.BuildId).zip'
artifactName: 'sheaft-jobs'
- task: PublishBuildArtifacts@1
displayName: "Publish JOBS WithoutMonitoring"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Jobs/build$(Build.BuildId)-staging.zip'
artifactName: 'sheaft-jobs-staging'
- task: ArchiveFiles@2
displayName: "Archive PAYMENT"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment/release"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment/build$(Build.BuildId).zip"
- task: DeleteFiles@1
displayName: "Delete PAYMENT NewRelic"
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment/release/newrelic'
Contents: '*'
- task: ArchiveFiles@2
displayName: "Archive PAYMENT WithoutMonitoring"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment/release"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment/build$(Build.BuildId)-staging.zip"
- task: PublishBuildArtifacts@1
displayName: "Publish PAYMENT"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment/build$(Build.BuildId).zip'
artifactName: 'sheaft-payment'
- task: PublishBuildArtifacts@1
displayName: "Publish PAYMENT WithoutMonitoring"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment/build$(Build.BuildId)-staging.zip'
artifactName: 'sheaft-payment-staging'
- task: ArchiveFiles@2
displayName: "Archive SIGNALR"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr/release"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr/build$(Build.BuildId).zip"
- task: DeleteFiles@1
displayName: "Delete SIGNALR NewRelic"
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr/release/newrelic'
Contents: '*'
- task: ArchiveFiles@2
displayName: "Archive SIGNALR WithoutMonitoring"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr/release"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr/build$(Build.BuildId)-staging.zip"
- task: PublishBuildArtifacts@1
displayName: "Publish SIGNALR"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr/build$(Build.BuildId).zip'
artifactName: 'sheaft-signalr'
- task: PublishBuildArtifacts@1
displayName: "Publish SIGNALR WithoutMonitoring"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr/build$(Build.BuildId)-staging.zip'
artifactName: 'sheaft-signalr-staging'
- task: ArchiveFiles@2
displayName: "Archive MANAGE"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Manage/release"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Manage/build$(Build.BuildId).zip"
- task: DeleteFiles@1
displayName: "Delete MANAGE NewRelic"
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Manage/release/newrelic'
Contents: '*'
- task: ArchiveFiles@2
displayName: "Archive MANAGE WithoutMonitoring"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Manage/release"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Manage/build$(Build.BuildId)-staging.zip"
- task: PublishBuildArtifacts@1
displayName: "Publish MANAGE"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Manage/build$(Build.BuildId).zip'
artifactName: 'sheaft-manage'
- task: PublishBuildArtifacts@1
displayName: "Publish MANAGE WithoutMonitoring"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Manage/build$(Build.BuildId)-staging.zip'
artifactName: 'sheaft-manage-staging'