File tree Expand file tree Collapse file tree 2 files changed +43
-9
lines changed
Expand file tree Collapse file tree 2 files changed +43
-9
lines changed Original file line number Diff line number Diff line change 1- trigger : none
1+ trigger : master
22
33name : ' $(GitVersion.MajorMinorPatch)'
44
55pool :
66 vmImage : ' windows-latest'
77
8- # variables:
9- # vstsFeed: 'af9a044c-47df-4b2e-bae8-1ea6da771ce7'
8+ variables :
9+ vstsFeed : ' af9a044c-47df-4b2e-bae8-1ea6da771ce7'
1010
1111steps :
1212- task : gitversion/setup@0
3030 ArtifactName : ' packages'
3131 publishLocation : ' Container'
3232
33- # - task: DotNetCoreCLI@2
34- # displayName: 'DbScaffolding and DbScaffolding.Identity dotnet push'
35- # inputs:
36- # command: push
37- # nuGetFeedType: 'internal'
38- # publishVstsFeed: '$(vstsFeed)'
33+ - task : DotNetCoreCLI@2
34+ displayName : ' dotnet push'
35+ inputs :
36+ command : push
37+ nuGetFeedType : ' internal'
38+ publishVstsFeed : ' $(vstsFeed)'
Original file line number Diff line number Diff line change 1+ trigger : none
2+
3+ name : ' $(GitVersion.MajorMinorPatch)-pr$(System.PullRequest.PullRequestId)-$(Rev:r)'
4+
5+ pool :
6+ vmImage : ' windows-latest'
7+
8+ steps :
9+ - task : gitversion/setup@0
10+ inputs :
11+ versionSpec : ' 5.x'
12+
13+ - task : gitversion/execute@0
14+ inputs :
15+ useConfigFile : true
16+ configFilePath : ' pipelines/GitVersion.yml'
17+
18+ - task : DotNetCoreCLI@2
19+ displayName : ' dotnet test'
20+ inputs :
21+ command : test
22+ packagesToPack : ' $(Build.Repository.LocalPath)/src/**/*.Tests.csproj'
23+
24+ - task : DotNetCoreCLI@2
25+ displayName : ' dotnet pack'
26+ inputs :
27+ command : pack
28+ packagesToPack : ' $(Build.Repository.LocalPath)/src/**/*.csproj'
29+
30+ - task : PublishBuildArtifacts@1
31+ inputs :
32+ PathtoPublish : ' $(Build.ArtifactStagingDirectory)'
33+ ArtifactName : ' packages'
34+ publishLocation : ' Container'
You can’t perform that action at this time.
0 commit comments