-
Notifications
You must be signed in to change notification settings - Fork 349
/
azure-pipelines-nightly.yml
104 lines (97 loc) · 4.38 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: $(TeamProject)_$(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
# No trigger for nightly
trigger: none
# No Pull request (PR) triggers for nightly
pr: none
# Nightly using schedules
schedules:
- cron: "0 0 * * Mon,Tue,Wed,Thu,Fri"
displayName: midnightly build
branches:
include:
- main
- dev-8.x
resources:
repositories:
- repository: self
type: git
ref: refs/heads/main
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
variables:
- name: __NugetSecurityAnalysisWarningLevel__
value: none
- name: runCodesignValidationInjection
value: false
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool:
name: MSSecurity-1ES-Build-Agents-Pool
image: MSSecurity-1ES-Windows-2019
os: windows
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: build
jobs:
- job: Debug
timeoutInMinutes: 120
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Debug'
skipComponentGovernanceDetection: true
snExe: 'C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\sn.exe'
snExe64: 'C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\sn.exe'
gacUtil: '$(Build.SourcesDirectory)\test\CommonAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll'
productBinPathEdm: '$(Build.SourcesDirectory)\src\Microsoft.OData.Edm\bin\$(buildConfiguration)'
mainDllEdm: 'Microsoft.OData.Edm.dll'
productBinPathCore: '$(Build.SourcesDirectory)\src\Microsoft.OData.Core\bin\$(buildConfiguration)'
mainDllCore: 'Microsoft.OData.Core.dll'
productBinPathSpatial: '$(Build.SourcesDirectory)\src\Microsoft.Spatial\bin\$(buildConfiguration)'
mainDllSpatial: 'Microsoft.Spatial.dll'
productBinPathClient: '$(Build.SourcesDirectory)\src\Microsoft.OData.Client\bin\$(buildConfiguration)'
mainDllClient: 'Microsoft.OData.Client.dll'
nugetArtifactsDir: 'Nuget-Debug'
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish Artifact - NuGet Debug Packages'
targetPath: '$(Build.ArtifactStagingDirectory)\NuGet-Debug'
artifactName: NuGetDebug
steps:
- template: /nightly.yml@self
- job: Release
timeoutInMinutes: 120
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
skipComponentGovernanceDetection: true
snExe: 'C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\sn.exe'
snExe64: 'C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\sn.exe'
gacUtil: '$(Build.SourcesDirectory)\test\CommonAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll'
productBinPathEdm: '$(Build.SourcesDirectory)\src\Microsoft.OData.Edm\bin\$(buildConfiguration)'
mainDllEdm: 'Microsoft.OData.Edm.dll'
productBinPathCore: '$(Build.SourcesDirectory)\src\Microsoft.OData.Core\bin\$(buildConfiguration)'
mainDllCore: 'Microsoft.OData.Core.dll'
productBinPathSpatial: '$(Build.SourcesDirectory)\src\Microsoft.Spatial\bin\$(buildConfiguration)'
mainDllSpatial: 'Microsoft.Spatial.dll'
productBinPathClient: '$(Build.SourcesDirectory)\src\Microsoft.OData.Client\bin\$(buildConfiguration)'
mainDllClient: 'Microsoft.OData.Client.dll'
nugetArtifactsDir: 'Nuget-Release'
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish Artifact - NuGet Release Packages'
targetPath: '$(Build.ArtifactStagingDirectory)\NuGet-Release'
artifactName: NuGetRelease
- output: nuget
displayName: 'MyGet push - Nightly packages to MyGet'
packageParentPath: '$(Build.ArtifactStagingDirectory)'
packagesToPush: $(Build.ArtifactStagingDirectory)\Nuget-Release\*Nightly*.nupkg
nuGetFeedType: external
publishFeedCredentials: 'MyGet.org - ODL Feed'
steps:
- template: /nightly.yml@self