Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
3b6d58a6
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3b6d58a6
编写于
6月 30, 2017
作者:
T
Tanner Gooding
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updating build.ps1 to kill devenv as part of its 'finally' clause for cibuilds.
上级
e2ec195c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
26 addition
and
7 deletion
+26
-7
build/scripts/build.ps1
build/scripts/build.ps1
+26
-5
netci.groovy
netci.groovy
+0
-2
未找到文件。
build/scripts/build.ps1
浏览文件 @
3b6d58a6
...
@@ -273,8 +273,6 @@ function Deploy-VsixViaTool() {
...
@@ -273,8 +273,6 @@ function Deploy-VsixViaTool() {
"Vsix\VisualStudioDiagnosticsWindow\Roslyn.VisualStudio.DiagnosticsWindow.vsix"
,
"Vsix\VisualStudioDiagnosticsWindow\Roslyn.VisualStudio.DiagnosticsWindow.vsix"
,
"Vsix\VisualStudioIntegrationTestSetup\Microsoft.VisualStudio.IntegrationTest.Setup.vsix"
)
"Vsix\VisualStudioIntegrationTestSetup\Microsoft.VisualStudio.IntegrationTest.Setup.vsix"
)
Get-Process
-Name
"devenv"
Write-Host
"Uninstalling old Roslyn VSIX"
Write-Host
"Uninstalling old Roslyn VSIX"
# Reverse the extension list so we uninstall in the proper order so that dependencies line up
# Reverse the extension list so we uninstall in the proper order so that dependencies line up
...
@@ -340,13 +338,33 @@ function Redirect-Temp() {
...
@@ -340,13 +338,33 @@ function Redirect-Temp() {
${env:TMP}
=
$temp
${env:TMP}
=
$temp
}
}
function
List-BuildProcesses
()
{
Write-Host
"Listing running build processes..."
Get-Process
-Name
"msbuild"
-ErrorAction
SilentlyContinue
|
Out-Host
Get-Process
-Name
"vbcscompiler"
-ErrorAction
SilentlyContinue
|
Out-Host
}
function
List-VSProcesses
()
{
Write-Host
"Listing running vs processes..."
Get-Process
-Name
"devenv"
-ErrorAction
SilentlyContinue
|
Out-Host
}
# Kill any instances VBCSCompiler.exe to release locked files, ignoring stderr if process is not open
# Kill any instances VBCSCompiler.exe to release locked files, ignoring stderr if process is not open
# This prevents future CI runs from failing while trying to delete those files.
# This prevents future CI runs from failing while trying to delete those files.
# Kill any instances of msbuild.exe to ensure that we never reuse nodes (e.g. if a non-roslyn CI run
# Kill any instances of msbuild.exe to ensure that we never reuse nodes (e.g. if a non-roslyn CI run
# left some floating around).
# left some floating around).
function
Stop-BuildProcesses
()
{
function
Stop-BuildProcesses
()
{
Get-Process
msbuild
-ErrorAction
SilentlyContinue
|
kill
Write-Host
"Killing running build processes..."
Get-Process
vbcscompiler
-ErrorAction
SilentlyContinue
|
kill
Get-Process
-Name
"msbuild"
-ErrorAction
SilentlyContinue
|
Stop-Process
Get-Process
-Name
"vbcscompiler"
-ErrorAction
SilentlyContinue
|
Stop-Process
}
# Kill any instances of devenv.exe to ensure VSIX install/uninstall works in future runs and to ensure
# that any locked files don't prevent future CI runs from failing.
# Also call Stop-BuildProcesses
function
Stop-VSProcesses
()
{
Write-Host
"Killing running vs processes..."
Get-Process
-Name
"devenv"
-ErrorAction
SilentlyContinue
|
Stop-Process
}
}
try
{
try
{
...
@@ -375,6 +393,8 @@ try {
...
@@ -375,6 +393,8 @@ try {
Create-Directory
$configDir
Create-Directory
$configDir
if
(
$cibuild
)
{
if
(
$cibuild
)
{
List-VSProcesses
List-BuildProcesses
Redirect-Temp
Redirect-Temp
}
}
...
@@ -427,7 +447,8 @@ catch {
...
@@ -427,7 +447,8 @@ catch {
}
}
finally
{
finally
{
Pop-Location
Pop-Location
if
(
$cibuild
)
{
if
(
$cibuild
)
{
Stop-VSProcesses
Stop-BuildProcesses
Stop-BuildProcesses
}
}
}
}
netci.groovy
浏览文件 @
3b6d58a6
...
@@ -219,8 +219,6 @@ commitPullList.each { isPr ->
...
@@ -219,8 +219,6 @@ commitPullList.each { isPr ->
def
myJob
=
job
(
jobName
)
{
def
myJob
=
job
(
jobName
)
{
description
(
"Windows ${configuration} tests on ${buildTarget}"
)
description
(
"Windows ${configuration} tests on ${buildTarget}"
)
steps
{
steps
{
batchfile
(
'tasklist /FI "IMAGENAME eq devenv.exe"'
)
batchfile
(
'taskkill /FI "IMAGENAME eq devenv.exe"'
)
batchFile
(
""".\\build\\scripts\\cibuild.cmd ${(configuration == 'debug') ? '-debug' : '-release'} -testVsi"""
)
batchFile
(
""".\\build\\scripts\\cibuild.cmd ${(configuration == 'debug') ? '-debug' : '-release'} -testVsi"""
)
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录