Re: BUILD_LOG_REGEX and Email
Do you not need double backslashes before the curly braces? On 22 Feb 2013, at 14:19, nes_welsh wrote: > Hi All, > > I am trying to parse the build log to extract some information which is > output in it. I have the following situation: > > build log stuff > { > table stuff > table stuff > table stuff > } > > I want to get the information in the {}. I am using the following regex > > ${BUILD_LOG_REGEX, regex="/\{(.*?)\}/m"} > > but its returning: > [[ Exception while replacing BUILD_LOG_REGEX. Please report this as a bug. > ]] > {{ java.util.regex.PatternSyntaxException: Illegal repetition near index 0 > /{(.*?)}/m > ^ }} > > Any Ideas? > > Cheers, > Neil > > > > -- > View this message in context: > http://jenkins.361315.n4.nabble.com/BUILD-LOG-REGEX-and-Email-tp4656346.html > Sent from the Jenkins users mailing list archive at Nabble.com. > > -- > 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 jenkinsci-users+unsubscr...@googlegroups.com. > 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 jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
RE: BUILD_LOG_REGEX and Email
I'd recommend getting your regex working outside of Jenkins using one of the many online tools. Then once you have it working there try again Sent from my Windows Phone From: nes_welsh Sent: 2/22/2013 7:19 To: jenkinsci-users@googlegroups.com Subject: BUILD_LOG_REGEX and Email Hi All, I am trying to parse the build log to extract some information which is output in it. I have the following situation: build log stuff { table stuff table stuff table stuff } I want to get the information in the {}. I am using the following regex ${BUILD_LOG_REGEX, regex="/\{(.*?)\}/m"} but its returning: [[ Exception while replacing BUILD_LOG_REGEX. Please report this as a bug. ]] {{ java.util.regex.PatternSyntaxException: Illegal repetition near index 0 /{(.*?)}/m ^ }} Any Ideas? Cheers, Neil -- View this message in context: http://jenkins.361315.n4.nabble.com/BUILD-LOG-REGEX-and-Email-tp4656346.html Sent from the Jenkins users mailing list archive at Nabble.com. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. 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 jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: BUILD_LOG_REGEX and Email
Hi All, Does anyone know if jenkins is able to do this? I have tried a number of things but i cant seem to return a block of text. -- View this message in context: http://jenkins.361315.n4.nabble.com/BUILD-LOG-REGEX-and-Email-tp4656346p4656723.html Sent from the Jenkins users mailing list archive at Nabble.com. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
BUILD_LOG_REGEX and Email
Hi All, I am trying to parse the build log to extract some information which is output in it. I have the following situation: build log stuff { table stuff table stuff table stuff } I want to get the information in the {}. I am using the following regex ${BUILD_LOG_REGEX, regex="/\{(.*?)\}/m"} but its returning: [[ Exception while replacing BUILD_LOG_REGEX. Please report this as a bug. ]] {{ java.util.regex.PatternSyntaxException: Illegal repetition near index 0 /{(.*?)}/m ^ }} Any Ideas? Cheers, Neil -- View this message in context: http://jenkins.361315.n4.nabble.com/BUILD-LOG-REGEX-and-Email-tp4656346.html Sent from the Jenkins users mailing list archive at Nabble.com. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.