Jenkins:Windows 构建重新启动了高位中断,并显示“构建已在进行中”

发布于 2025-01-13 12:04:23 字数 626 浏览 3 评论 0原文

在 Jenkins 中,我有一个函数,该

powershell '& "C:\\Program Files\\VisBuildPro9\\VisBuildCmd.exe" /logfile myLogFile /nologo myBuildFile.bld'

函数过去工作正常,直到我无法控制的因素导致该脚本必须重新启动。 Jenkins 输出:

3/10/2022 9:38:06 AM: Starting Build: myBuildFile.bld
3/10/2022 9:38:06 AM: Building project step 'myBuildFile.bld' was restarted elevated'...
Pausing 3 seconds...

Error building application: Build already in progress.

现在,如果我在作为 Jenkins 代理的 Windows 系统中运行 myBuildFile.bld,Visual Build Professional 会执行类似的操作,生成第二个(提升的)VBP,它运行构建,而不会抱怨构建已经在进行中。

如何克服 Jenkins 脚本中的“构建已在进行中”块?

In Jenkins, I have in a function that has

powershell '& "C:\\Program Files\\VisBuildPro9\\VisBuildCmd.exe" /logfile myLogFile /nologo myBuildFile.bld'

This used to work fine until factors beyond my control caused this script to have to restart elevated. Jenkins output:

3/10/2022 9:38:06 AM: Starting Build: myBuildFile.bld
3/10/2022 9:38:06 AM: Building project step 'myBuildFile.bld' was restarted elevated'...
Pausing 3 seconds...

Error building application: Build already in progress.

Now if I run myBuildFile.bld in the Windows system that is the Jenkins agent, Visual Build Professional does something similar, spawning a second (elevated) VBP which runs the build without complaining that a build is already in progress.

How can I get past the "Build already in progress" block in my Jenkins script?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文