-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipeline-payment.yml
27 lines (27 loc) · 1.17 KB
/
azure-pipeline-payment.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
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.Payment/Sheaft.Web.Payment.csproj -c Release --no-restore --no-build --output publish_output/Sheaft.Web.Payment/
- task: ArchiveFiles@2
displayName: "Archive PAYMENT"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment/build$(Build.BuildId).zip"
- task: PublishBuildArtifacts@1
displayName: "Publish PAYMENT"
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/publish_output/Sheaft.Web.Payment/build$(Build.BuildId).zip'
artifactName: 'sheaft-payment'