-
Notifications
You must be signed in to change notification settings - Fork 347
Expand file tree
/
Copy pathazure-pipelines-insertion.yml
More file actions
164 lines (153 loc) · 6.3 KB
/
azure-pipelines-insertion.yml
File metadata and controls
164 lines (153 loc) · 6.3 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
parameters:
- name: 'ComponentBranchName'
default: 'main'
- name: 'CreateDraftPR'
default: 'false'
- name: 'OptionalTitlePrefix'
default: '[Auto Insertion]'
- name: 'VisualStudioBranchName'
default: 'main'
variables:
- group: DotNet-Roslyn-Insertion-Variables
- template: /eng/common/templates-official/variables/pool-providers.yml@self
- name: RequiredValueSentinel
value: 'REQUIRED'
- name: DefaultValueSentinel
value: '(default)'
- name: BuildQueueName
value: 'microsoft-vstest'
- name: ComponentAzdoUri
value: 'https://dnceng.visualstudio.com/DefaultCollection'
- name: ComponentProjectName
value: 'internal'
- name: ComponentName
value: 'VS Test Platform'
- name: DropPath
value: '/dp=microsoft-vstest/VSSetupArtifacts'
- name: InsertCore
value: 'false'
- name: InsertDevDiv
value: 'false'
- name: InsertToolset
value: 'false'
- name: QueueValidation
value: '(default)'
- name: UpdateAssemblyVersions
value: '(default)'
- name: UpdateCoreXTLibraries
value: 'false'
- name: InsertionCount
value: '1'
- name: CherryPick
value: '(default)'
- name: ComponentGitHubRepoName
value: '(default)'
- name: SpecificBuildNumber
value: '(default)'
- name: AutoComplete
value: 'true'
- name: ComponentBranchName
value: '${{ parameters.ComponentBranchName }}'
- name: CreateDraftPR
value: '${{ parameters.CreateDraftPR }}'
- name: OptionalTitlePrefix
value: '${{ parameters.OptionalTitlePrefix }}'
- name: VisualStudioBranchName
value: '${{ parameters.VisualStudioBranchName }}'
trigger: none
schedules:
# insert at 1am on monday, wednesday and friday
- cron: 0 1 * * 1,3,5
displayName: Daily midnight insertion to VS
branches:
include:
- main
always: true
resources:
repositories:
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
sdl:
policheck:
enabled: true
tsa:
enabled: true
pool:
name: $(DncEngInternalBuildPool)
image: windows.vs2026preview.scout.amd64
os: windows
settings:
networkIsolationPolicy: Permissive,CFSClean
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: insert
displayName: Insert
jobs:
- template: /eng/common/templates-official/jobs/jobs.yml@self
parameters:
jobs:
- job: insert
displayName: Insert
pool:
name: $(DncEngInternalBuildPool)
demands: ImageOverride -equals windows.vs2026preview.scout.amd64
timeoutInMinutes: 90
steps:
- task: NuGetCommand@2
displayName: 'Install RIT from Azure Artifacts'
inputs:
command: custom
arguments: 'install RoslynTools.VisualStudioInsertionTool -PreRelease -Source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
- powershell: |
mv RoslynTools.VisualStudioInsertionTool.* RIT
# Path is like .\RIT\tools\net472\OneOffInsertion.ps1, the TFM can change as the
# tools gets updated, so we look for it with a wildcard, and use the first one found
$script = Get-ChildItem .\RIT\tools\*\OneOffInsertion.ps1 | Select-Object -First 1 -ExpandProperty FullName
# Add VS Interactive experiences team (from devdiv) as reviewer. To get the user guid, make PR search with createdBy (in the target organization => devdiv), and you will get the guid in URL. OR https://dev.azure.com/devdiv/_apis/teams?$mine=true
$team = "10a2f33b-3b3d-47a9-a22f-6bb09247bb63"
"Found tool: '$script'"
$params = @{
userName = "dn-bot@microsoft.com"
password = "$(dn-bot-devdiv-build-e-code-full-release-e-packaging-r)"
componentUserName = "dn-bot@microsoft.com"
componentPassword = "$(dn-bot-dnceng-build-e-code-full-release-e-packaging-r)"
requiredValueSentinel = "$(RequiredValueSentinel)"
defaultValueSentinel = "$(DefaultValueSentinel)"
buildQueueName = "$(BuildQueueName)"
componentAzdoUri = "$(ComponentAzdoUri)"
componentProjectName = "$(ComponentProjectName)"
componentBranchName = "$(ComponentBranchName)"
componentName = "$(ComponentName)"
dropPath = "$(DropPath)"
insertCore = "$(InsertCore)"
insertDevDiv = "$(InsertDevDiv)"
insertToolset = "$(InsertToolset)"
queueValidation = "$(QueueValidation)"
specificBuild = "$(SpecificBuildNumber)"
updateAssemblyVersions = "$(UpdateAssemblyVersions)"
updateCoreXTLibraries = "$(UpdateCoreXTLibraries)"
visualStudioBranchName = "$(VisualStudioBranchName)"
titlePrefix = "$(OptionalTitlePrefix)"
insertionCount = "$(InsertionCount)"
writePullRequest = "$(System.DefaultWorkingDirectory)\prid.txt"
autoComplete = "$(AutoComplete)"
createDraftPR = "$(CreateDraftPR)"
cherryPick = "$(CherryPick)"
componentGitHubRepoName = "$(ComponentGitHubRepoName)"
reviewerGuid = $team
}
& $script @params
workingDirectory: '$(System.DefaultWorkingDirectory)\'
displayName: 'Run OneOffInsertion.ps1'
- script: 'echo. && echo. && type "$(System.DefaultWorkingDirectory)\prid.txt" && echo. && echo.'
displayName: 'Report PR URL'
# Avoid warning from subsequent steps.
- powershell: |
mkdir artifacts
displayName: 'Create artifacts dir'