</builders>
<publishers>
<org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder plugin="groovy-postbuild@1.8">
- <groovyScript>def matcher = manager.getLogMatcher(".*<name>(.*)</name>\$")
+ <groovyScript>def project = manager.getLogMatcher('.*"project": "(.*)".*$')
+def build = manager.getLogMatcher('.*"buildid": "(.*)".*$')
+def image = manager.getLogMatcher('.*"name": "(.*)".*$')
-if(matcher?.matches()) {
- manager.addShortText(matcher.group(1))
-}else{
- if ( manager.logContains("Info: Finished.*")){
- manager.addBadge("success.gif", "")
- }else{
- manager.addBadge("error.gif","")
- }
-}</groovyScript>
- <behavior>0</behavior>
- </org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder>
+if(project?.matches() && build?.matches() && image?.matches() ) {
+ manager.addShortText(project.group(1)+' '+build.group(1)+' '+image.group(1))
+}
+</groovyScript>
+ <behavior>0</behavior> </org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder>
<hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup@0.16">
<patterns>
<hudson.plugins.ws__cleanup.Pattern>