有人设法让 Jenkins Naginator 插件使用正则表达式工作吗?
我有控制台输出
Build was aborted
Aborted by xxxxxxxxx
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level C:\xxxxxxxxx\workspace\testSuiteExecution\target\surefire-reports to /var/lib/jenkins/jobs/testSuiteExecution/builds/534/htmlreports/HTML_Report
ERROR: Specified HTML directory 'C:\xxxxxx\workspace\testSuiteExecution\target\surefire-reports' does not exist.
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Notifying upstream projects of job completion
Finished: ABORTED
仅当之前的构建被中止时,我才使用 naginator 插件来重建它。 因此我把:
但这不起作用。我尝试了许多正则表达式变体(例如,构建被中止),但没有运气。 有人设法让它工作吗?
您是否有任何替代方案可以仅重新运行已中止的构建(不是失败、成功或不稳定)
最佳答案
跳过斜杠即可。 “正则表达式”应该是这种情况:
Build was aborted
您可以添加 OR 条件
||
举个例子:
ERROR: Error fetching remote repo 'origin' || .OutOfMemoryError
关于Jenkins Naginator 插件和正则表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41466219/