Jenkins Naginator插件和正则表达式
有没有人设法让Jenkins Naginator插件使用正则表达式 我有控制台输出Jenkins Naginator插件和正则表达式,jenkins,jenkins-plugins,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/
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插件来重建以前的构建,只有当它被中止时。
因此,我提出:
但这不起作用。我尝试了许多正则表达式的变体(如构建被中止),但没有成功。
有人设法让它工作了吗
您是否有其他方法可以只重新运行中止的构建(不是失败的、成功的或不稳定的)只需跳过斜杠即可。在这种情况下,“regex”应为:
Build was aborted
您可以使用添加或条件
||
举个例子:
ERROR: Error fetching remote repo 'origin' || .OutOfMemoryError
语法已更改。
目前正确的是:
first phrase|any second phrase|third text
要点:符号“|”附近没有空格
这个例子:
first phrase | any text
指搜索是否出现“第一个短语”或“任何文本”
此外,经过大量实验,我没有找到带“*”的通配符的正确语法,因此它的行为不像正则表达式