parallel-processing - Jenkins 管道文件中的并行 MSBuild 失败
问题描述
我注意到,每当我尝试在 jenkins 文件中构建脚本化的 .NET 解决方案时,在不同的节点上并行构建,其中一个构建成功,但其他构建失败。我的设置如下:
"Pipeline A": {
node {
stage('Git clone') {
checkout scm
}
stage('Build') {
powershell '".paket\\paket.bootstrapper.exe"'
powershell '".\\paket_install.bat"'
bat '"msbuild" iGCAutomation.sln"'
}
},
"Pipeline B": {
node {
stage('Git clone') {
checkout scm
}
stage('Build') {
powershell '".paket\\paket.bootstrapper.exe"'
powershell '".\\paket_install.bat"'
bat '"msbuild" iGCAutomation.sln"'
}
你明白我的意思。
在日志中,我确实看到了这个建议,我尝试过但实际上并没有奏效。
一次在此解决方案中构建项目。要启用并行构建,请添加“/m”开关。
因此对于流水线 A,paket 下载必要的依赖项并继续执行其他阶段。在管道 B 中,构建失败。
知道为什么会这样吗?
解决方案
推荐阅读
- google-cloud-storage - 使用谷歌云存储、谷歌计算引擎和外部网站提供文件
- tabs - tns create app-name --template tns-template-drawer-navigation-ng
- python - 如何让 Python 文件打开到现有的 Spyder IDE 会话中
- javascript - 经常更新不同大小的顶点缓冲区部分
- python - MySQL插入一个条目,其中值数<列数
- android - 即时应用在奥利奥设备上未激活
- mysql - SQLite / MySQL 使用 LIKE 或 REGEXP 匹配 String 中的特殊内容词
- macos - 在 OSX 上安装 ocaml-top - GTK 问题
- java - Java中的优化方法
- asp.net - 在 IIS 上呈现奇怪的字符