Hi Rob,

You can use the Text Finder plugin to do this. Add Jenkins Text Finder as a post-build step, leave the first text field blank and check "Also search console output". For the regular expression enter the pattern that will match your log output indicating success, and check "Succeed if found" below. The job will only succeed if the text is found.

Regards,
Eric

On 2/4/2014 7:39 AM, Mandeville, Rob wrote:

We've got the log parser plugin, and use it to good effect. We can define error lines based on output from known failure modes, so that when we see them we list the job as failed. But obviously, we don't know all the possible failure modes. What we want is for our job to be considered a failure _/unless/_ we see a specific line in the output. Basically, we want to verify that the job says that it passed. For various reasons, we can't just take the exit value being zero as sufficient evidence: we want to only pass when we see a specific line in the output.

Does anybody have a solution for this?

Thanks in advance,

--Rob Mandeville

Litle & Co.

//

The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle & Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle & Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to