我们的Perforce服务器出现故障,我们收到每个故障的电子邮件通知,例如:
P4: Unable to connect: com.perforce.p4java.exception.ConnectionException: The filesystem 'P4LOG' has only 127.94M free, but the server configuration requires at least 250M available.
P4: Connection retry: 1
P4: Connection retry giving up...
P4: Unable to setup workspace: java.lang.NullPointerException
P4: Unable to close Perforce connection.
或者,像:
P4: Unable to connect: com.perforce.p4java.exception.ConnectionException: Unable to connect to Perforce server at myp4:1666
P4: Connection retry: 1
P4: Connection retry giving up...
P4 Task: establishing connection.
P4: Server connection error: myp4:1666
P4 Task: Unable to connect.
ERROR:
P4 Task: Unable to connect.
我使用Text Finder插件搜索控制台。如果找到模式,我希望构建标记为不稳定。 (我不希望所有用户因为服务器暂时中断而发送垃圾邮件。)我的正则表达式是:
(ConnectionException: Unable to connect to Perforce server|Unable to setup workspace: java.lang.NullPointerException)
我还检查了#34;如果找到则不稳定"和"还搜索控制台输出"。
插件似乎有效,因为我在构建日志中找到了这个条目:
[PostBuildScript] - Execution post build scripts.
...
Archiving artifacts
Checking console output
/data/home/jenkins/jobs/packages/jobs/myjob/jobs/myjob__main/builds/12079/log:
P4: Unable to connect: com.perforce.p4java.exception.ConnectionException: Unable to connect to
Perforce server at myp4:1666
...
Finished: FAILURE
为什么Text Finder无法将作业标记为不稳定,即使它找到了所需的模式?
顺便说一下,这份工作有2个输入源。它使用Perforce轮询器,但它也有一个定期计时器,因此它可以捕获第二个源中的更改。谢谢!