--
Helllo,
I am using parsed console log plugin and Email-ext plugin in Jenkins to send out daily build status, only upon build failure or compiler warnings. I would like to display the extracted error/warning message in the email body. I got groovy email template from "https://github.com/jenkinsci/email-ext-plugin/blob/master/src/main/resources/hudson/plugins/emailext/templates/groovy-html.template". It display Console Output instead of specific error/warning message want. I have zero knowledge on groovy or html et al, it gonna take me sometime to learn and able to modify the template to fulfill my need quickly.
Can someone point me a sample file that can search out either console output or parsed console output and only display the lines contain "error" or "warning"?
Any help is greatly appreciated.
Victoria Lei
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/71d20ed6-fe68-409c-8f2d-4da254aa1d1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
Building ProductSW/Processes/TaskStarter |
Creating directory cpu |
C:/QNX650/Host/win32/x86/usr/bin/mkdir -p cpu |
Compiling TaskStarter.c |
C:/QNX650/Host/win32/x86/usr/bin/qcc -V4.4.2,gcc_ntox86 -c -Wp,-Wall -Wno-unknown-pragmas -Wp,-Wno-parentheses -DNDEBUG -DPPC_PROC=0 -DBOARD_RENUM -DCT_80 -DTMRU_QNX -msse -msse2 -msse3 -march=prescott -mfpmath=sse -mstackrealign -O -Wp,-MD -Wp,cpu/TaskStarter.d -IC:\Jenkins_buildslave_gen3\workspace\testjob/Processes/IPMI -IC:\Jenkins_buildslave_gen3\workspace\testjob/QNX_BSP/BSP/src/hardware/startup/lib/x86 -IC:\Jenkins_buildslave_gen3\workspace\testjob/QNX_BSP/BSP/src/hardware/startup/lib/ -IC:\Jenkins_buildslave_gen3\workspace\testjob/Processes/POST -I../Include -I../../Include -I../../Include\TMSC -I../../Include\Status -IC:\Intel\libraries\ipp41\ia32_itanium\include -IC:\Intel\libraries\ipp41\ia32_itanium\tools\staticlib TaskStarter.c -o cpu/TaskStarter.o |
TaskStarter.c: In function 'main': |
TaskStarter.c:72: error: expected expression before '<<' token |
cc: C:/QNX650/host/win32/x86/usr/lib/gcc/i486-pc-nto-qnx6.5.0/4.4.2/cc1 caught signal 1 |
make[2]: *** [TaskStarter.o] Error 1 |
make[2]: Leaving directory `C:/Jenkins_buildslave_gen3/workspace/testjob/Processes/TaskStarter' |
make[1]: *** [TaskStarter.y] Error 2 |
make[1]: Leaving directory `C:/Jenkins_buildslave_gen3/workspace/testjob/Processes' |
make: *** [Processes.y] Error 2 |
end rtm ct80 Thu Apr 2 11:04:50 2015 |
start sample ct80 Thu Apr 2 11:04:50 2015 |
Changing to C:\Jenkins_buildslave_gen3\workspace\testjob\TMSC_Sample |
Making the Sample"what I really interested is to only display below lines what contains Error""TaskStarter.c:72: error: expected expression before '<<' token
make[2]: *** [TaskStarter.o] Error 1 make[1]: *** [TaskStarter.y] Error 2 make: *** [Processes.y] Error 2" what should I do? Thanks |
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
If you are using what I wrote, it only gets the last 100 lines of the log. You would need to change that somehow to get the information you want.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c1fe91e9-73bf-4f82-9756-8276bfec7cbd%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1c38193b-8a78-49ff-8b0c-678c19416284%40googlegroups.com.