更新时间:2023-12-05 13:47:46
根据您的意见,您***使用 Text-finder 插件。
Based on your comments, you would be better off with Text-finder plugin.
它允许搜索文件以及控制台,正则表达式,然后设置构建 unstable
或失败
如果找到。
It allows to search file(s), as well as console, for a regular expression and then set the build either unstable
or failed
if found.
至于Groovy,您可以使用以下命令访问 $ {WORKSPACE}
环境变量: def workspace = manager.build.getEnvVars()[WORKSPACE]
As for the Groovy, you can use the following to access ${WORKSPACE}
environment variable:def workspace = manager.build.getEnvVars()["WORKSPACE"]