Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
Runtime
提交
f490d66e
R
Runtime
项目概览
jobily
/
Runtime
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
f490d66e
编写于
9月 13, 2023
作者:
J
Juan Hoyos
提交者:
GitHub
9月 13, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Try to disable VSIX update service or failfast (#92028)
上级
d34a059b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
46 addition
and
0 deletion
+46
-0
eng/pipelines/common/global-build-job.yml
eng/pipelines/common/global-build-job.yml
+3
-0
eng/pipelines/common/templates/disable-vsupdate-or-failfast.yml
...pelines/common/templates/disable-vsupdate-or-failfast.yml
+38
-0
eng/pipelines/common/templates/runtimes/xplat-job.yml
eng/pipelines/common/templates/runtimes/xplat-job.yml
+3
-0
eng/pipelines/installer/jobs/build-job.yml
eng/pipelines/installer/jobs/build-job.yml
+2
-0
未找到文件。
eng/pipelines/common/global-build-job.yml
浏览文件 @
f490d66e
...
...
@@ -145,6 +145,9 @@ jobs:
-
${{ each variable in parameters.variables }}
:
-
${{ variable }}
steps
:
-
${{ if eq(parameters.osGroup, 'windows') }}
:
-
template
:
/eng/pipelines/common/templates/disable-vsupdate-or-failfast.yml
-
checkout
:
self
clean
:
true
# If running in source build mode, a git stash will be used for the inner clone. Avoid setting a fetch depth,
...
...
eng/pipelines/common/templates/disable-vsupdate-or-failfast.yml
0 → 100644
浏览文件 @
f490d66e
# This script tries to disable VSIXAutoUpdate. In case an update is seen as already running,
# it will exit with an error.
steps
:
-
powershell
:
|
schtasks /change /tn "\Microsoft\VisualStudio\VSIX Auto Update" /disable
$vswhere = "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"
if (-not (Test-Path -Path "$vswhere" -PathType Leaf))
{
Write-Error "Couldn't locate vswhere at $vswhere"
exit 1
}
$vsdir = &"$vswhere" -latest -prerelease -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
$vsregedit = "$vsdir\Common7\IDE\VsRegEdit.exe"
if (-not (Test-Path -Path "$vsregedit" ))
{
Write-Error "VSWhere returned path: $vsdir, but regedit $vsregedit doesn't exist."
exit 1
}
Write-Output "VSWhere returned path: $vsdir, using regedit $vsregedit"
Write-Output "Disabling updates through VS Registry:"
&"$vsdir\Common7\IDE\VsRegEdit.exe" set local HKCU ExtensionManager AutomaticallyCheckForUpdates2Override dword 0
&"$vsdir\Common7\IDE\VsRegEdit.exe" read local HKCU ExtensionManager AutomaticallyCheckForUpdates2Override dword
$processes = Get-Process -Name VSIXAutoUpdate -ErrorAction SilentlyContinue
if ($processes -ne $null -and $processes.Count -gt 0)
{
Write-Error "VSIXAutoUpdate has already spawned. Failfast to allow retry"
exit 1
}
displayName
:
Disable VSIX updates or fail-fast
condition
:
always()
eng/pipelines/common/templates/runtimes/xplat-job.yml
浏览文件 @
f490d66e
...
...
@@ -106,6 +106,9 @@ jobs:
-
${{insert}}
:
${{ variable }}
steps
:
-
${{ if eq(parameters.osGroup, 'windows') }}
:
-
template
:
/eng/pipelines/common/templates/disable-vsupdate-or-failfast.yml
-
checkout
:
self
clean
:
true
fetchDepth
:
$(checkoutFetchDepth)
...
...
eng/pipelines/installer/jobs/build-job.yml
浏览文件 @
f490d66e
...
...
@@ -293,6 +293,8 @@ jobs:
parameters.archType,
parameters.liveLibrariesBuildConfig) }}
steps
:
-
${{ if eq(parameters.osGroup, 'windows') }}
:
-
template
:
/eng/pipelines/common/templates/disable-vsupdate-or-failfast.yml
-
checkout
:
self
clean
:
true
fetchDepth
:
$(checkoutFetchDepth)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录