取消构建操作
我正在实施 hudson 来实现构建自动化。我正在使用一些 shell 脚本来执行构建步骤之一。取消构建操作(在构建过程中)会导致构建处于不合逻辑状态。是否可以限制用户使用取消构建操作?
I am in phase of implementing hudson for the build automation. I am using some shell scripts to perform one of the build step. Cancel build operation (in the middle of build process) leads to the build in illogical state. Is it possible to restrict users to use cancel build operation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您最好让构建在每个构建上创建一个干净的工作区。将先前的退出状态作为构建稳定性的一个因素可能会导致更多问题。
即使您启用了使用自定义工作区选项并为构建进行了特殊设置,请考虑将构建的第一步设置为一个脚本,该脚本可以清理任何先前的工件和可能存在的构建步骤由失败的构建创建。
You would be better off having the build make a clean workspace on each build. Having prior exit state be a factor in the stability of the build is likely to lead to more problems.
Even if you have the Use custom workspace option enabled and have a special set up for the build, consider having the first step of the build be a script that cleans up any prior artifacts and build steps that might have been created by failed builds.
清理工作区不是问题,但我在打包之前使用一些脚本在 cleacase 中签出和更改源代码。如果有人在中间中止它,这些文件可能会保持签出状态并处于无效状态。因此,我需要用户不要在过程中使用中止构建操作。谢谢。
Cleaning up the workspace is not an problem, but I use some scripts to checkout and change source code in cleacase prior to package. And if somebody abort it in between, those files could remain checked out and in invalid state. Hence I need users to not use abort build operation in the middle of the process. Thanks.