-
Notifications
You must be signed in to change notification settings - Fork 495
/
azure-pipelines-nightly.yml
49 lines (44 loc) · 1.57 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
# 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:
VmImage: windows-latest # https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops
BuildConfiguration: Release
Packaging.EnableSBOMSigning: true
Codeql.Enabled: true
stages:
- stage:
displayName: Generate nightly GA
variables:
Codeql.BuildIdentifier: ga
jobs:
- template: templates/nuget-pack.yml
parameters:
BuildConfiguration: Release
Arguments: /p:IsNightly=true
VmImage: $(VmImage)
ReleasePackage: true
OutputPath: '$(Build.ArtifactStagingDirectory)/bin/AnyCPU/$(BuildConfiguration)/Microsoft.Azure.Cosmos'
BlobVersion: 'nightly'
CleanupFolder: true
- stage:
displayName: Generate nightly preview
variables:
Codeql.BuildIdentifier: preview
jobs:
- template: templates/nuget-pack.yml
parameters:
BuildConfiguration: Release
Arguments: /p:IsNightly=true /p:IsPreview=true
VmImage: $(VmImage)
ReleasePackage: true
OutputPath: '$(Build.ArtifactStagingDirectory)/bin/AnyCPU/$(BuildConfiguration)/Microsoft.Azure.Cosmos'
BlobVersion: 'nightly-preview'
CleanupFolder: true