Jenkins Naginator 插件和正则表达式

标签 jenkins jenkins-plugins

有人设法让 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 插件来重建它。 因此我把: enter image description here

但这不起作用。我尝试了许多正则表达式变体(例如,构建被中止),但没有运气。 有人设法让它工作吗?

您是否有任何替代方案可以仅重新运行已中止的构建(不是失败、成功或不稳定)

最佳答案

跳过斜杠即可。 “正则表达式”应该是这种情况:

Build was aborted

您可以添加 OR 条件

||

举个例子:

ERROR: Error fetching remote repo 'origin' || .OutOfMemoryError 

关于Jenkins Naginator 插件和正则表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41466219/

相关文章:

jenkins - 我们如何将一些数据从 Jenkins 发送回 bitbucket 服务器?

git - 在轮询 SCM 时将 ssh-agent 与 jenkins 一起使用

git - 有没有在 jenkins pipeline groovy 脚本中调用 git clean 的正确方法?

eclipse - Jenkins:如何在不删除第一个的情况下将两个存储库 URL checkout 到同一个工作区?

git - 检查 git repo 中是否存在分支而不进行克隆

jenkins - 如何在所有节点中显示多个Jenkins作业的执行状态?

jenkins - 使用 Jenkins DSL 插件进行稀疏结账?

jenkins - 无法将 Jenkins 的 XCode 插件设置为使用指定的钥匙串(keychain)?

java - Maven 不接受加密的 Nexus 密码

mysql - 无法在EC2上同时运行Jenkins和MySQL的Docker容器