Parallel processing Jenkins管道文件中的并行MSBuild失败

Parallel processing Jenkins管道文件中的并行MSBuild失败,parallel-processing,msbuild,jenkins-pipeline,Parallel Processing,Msbuild,Jenkins Pipeline,我注意到,每当我试图在jenkins文件中的不同节点上并行构建脚本化的.NET解决方案时,其中一个构建成功,但其他构建失败。我的设置如下: "Pipeline A": { node { stage('Git clone') { checkout scm } stage('Build') {

我注意到,每当我试图在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中,构建失败


知道为什么会这样吗

它是如何失败的呢?在日志文件中,我得到了这个建议(我已经尝试在脚本中添加了这个建议)italic_在这个解决方案中一次构建一个项目。要启用并行构建,请添加“/m”开关。\u italic因此,我首先使用paket下载所有依赖项,然后构建解决方案。对于第一个节点,这很好。。但是,对于管道B,相同的步骤失败。我的一部分通过修复powershell命令解决了此问题。该命令现在看起来如何?以防有人有同样的问题,并发现你的问题。