v0rts
10/31/2019 - 5:46 PM

Grep all logs files for string

Grep all logs files for string

def sout = new StringBuilder(), serr = new StringBuilder()
def proc = 'find /var/jenkins_home/jobs -name log -exec grep -i data {} \\ ;' .execute()
proc.consumeProcessOutput(sout, serr)
proc.waitForOrKill(1000)
println "out> $sout err> $serr"