-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipeline-dev.yml
101 lines (100 loc) · 5.25 KB
/
azure-pipeline-dev.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
trigger:
batch: true
stages:
- stage: __default
jobs:
- job: Job
pool:
vmImage: "ubuntu-latest"
steps:
- task: CmdLine@2
inputs:
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/sprint/
dotnet publish $(System.DefaultWorkingDirectory)/Sheaft.Web.Jobs/Sheaft.Web.Jobs.csproj -c Release --no-restore --no-build --output publish_output/Sheaft.Web.Jobs/sprint/
dotnet publish $(System.DefaultWorkingDirectory)/Sheaft.Web.Payment/Sheaft.Web.Payment.csproj -c Release --no-restore --no-build --output publish_output/Sheaft.Web.Payment/sprint/
dotnet publish $(System.DefaultWorkingDirectory)/Sheaft.Web.Signalr/Sheaft.Web.Signalr.csproj -c Release --no-restore --no-build --output publish_output/Sheaft.Web.Signalr/sprint/
dotnet publish $(System.DefaultWorkingDirectory)/Sheaft.Web.Manage/Sheaft.Web.Manage.csproj -c Release --no-restore --no-build --output publish_output/Sheaft.Web.Manage/sprint/
- task: DeleteFiles@1
displayName: "Delete GRAPHQL NewRelic"
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Api/sprint/newrelic'
Contents: '*'
- task: ArchiveFiles@2
displayName: "Archive GRAPHQL"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Api/sprint"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Api/build$(Build.BuildId)-sprint.zip"
- task: PublishBuildArtifacts@1
displayName: "Publish GRAPHQL"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Api/build$(Build.BuildId)-sprint.zip'
artifactName: 'sheaft-graphql-sprint'
- task: DeleteFiles@1
displayName: "Delete JOBS NewRelic"
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Jobs/sprint/newrelic'
Contents: '*'
- task: ArchiveFiles@2
displayName: "Archive JOBS"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Jobs/sprint"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Jobs/build$(Build.BuildId)-sprint.zip"
- task: PublishBuildArtifacts@1
displayName: "Publish JOBS"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Jobs/build$(Build.BuildId)-sprint.zip'
artifactName: 'sheaft-jobs-sprint'
- task: DeleteFiles@1
displayName: "Delete PAYMENT NewRelic"
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment/sprint/newrelic'
Contents: '*'
- task: ArchiveFiles@2
displayName: "Archive PAYMENT"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment/sprint"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment/build$(Build.BuildId)-sprint.zip"
- task: PublishBuildArtifacts@1
displayName: "Publish PAYMENT"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment/build$(Build.BuildId)-sprint.zip'
artifactName: 'sheaft-payment-sprint'
- task: DeleteFiles@1
displayName: "Delete SIGNALR NewRelic"
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr/sprint/newrelic'
Contents: '*'
- task: ArchiveFiles@2
displayName: "Archive SIGNALR"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr/sprint"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr/build$(Build.BuildId)-sprint.zip"
- task: PublishBuildArtifacts@1
displayName: "Publish SIGNALR"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Signalr/build$(Build.BuildId)-sprint.zip'
artifactName: 'sheaft-signalr-sprint'
- task: DeleteFiles@1
displayName: "Delete MANAGE NewRelic"
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Manage/sprint/newrelic'
Contents: '*'
- task: ArchiveFiles@2
displayName: "Archive MANAGE"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Manage/sprint"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Manage/build$(Build.BuildId)-sprint.zip"
- task: PublishBuildArtifacts@1
displayName: "Publish MANAGE"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Manage/build$(Build.BuildId)-sprint.zip'
artifactName: 'sheaft-manage-sprint'