forked from Azure/azure-cosmos-dotnet-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-nightly.yml
76 lines (63 loc) · 2.5 KB
/
azure-pipelines-nightly.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
# A pipeline with no CI trigger
trigger: none
pr: none
schedules:
- cron: "0 0 * * *" # cron syntax https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops&tabs=yaml#scheduled-triggers
displayName: Cosmos Nightly
branches:
include:
- master
always: true # whether to always run the pipeline or only if there have been source code changes since the last run. The default is false
variables:
ReleaseArguments: ' --filter "TestCategory!=Quarantine" --verbosity normal '
VmImage: windows-latest # https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops
BuildConfiguration: Release
IsNightly: true
stages:
- stage:
displayName: Gate
jobs:
- template: templates/static-tools.yml
parameters:
BuildConfiguration: $(BuildConfiguration)
VmImage: $(VmImage)
- template: templates/build-test.yml
parameters:
BuildConfiguration: $(BuildConfiguration)
Arguments: $(ReleaseArguments) /p:IsNightly=true /p:GeneratePackageOnBuild=true
VmImage: $(VmImage)
- stage:
displayName: Publish
jobs:
- job:
pool:
vmImage: $(VmImage)
steps:
- task: DotNetCoreCLI@2
displayName: Build Microsoft.Azure.Cosmos
inputs:
command: build
configuration: $(BuildConfiguration)
nugetConfigPath: NuGet.config
projects: Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj
arguments: --configuration $(BuildConfiguration)
versioningScheme: OFF
- task: DotNetCoreCLI@2
displayName: Pack Microsoft.Azure.Cosmos
inputs:
command: pack
configuration: $(BuildConfiguration)
searchPatternPack: Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj
arguments: --configuration $(BuildConfiguration)
versioningScheme: OFF
- task: DotNetCoreCLI@2
displayName: Push Microsoft.Azure.Cosmos
inputs:
command: push
configuration: $(BuildConfiguration)
searchPatternPack: Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj
arguments: --configuration $(BuildConfiguration)
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '4000bd49-81c3-47f2-94d8-d1392b95c228/04efb628-f46d-4b48-ac4d-5af5b1c75043' #azure-cosmos-dotnet
versioningScheme: OFF