Skip to content

Instantly share code, notes, and snippets.

@phgeraldeli
Created June 28, 2021 17:17
Show Gist options
  • Save phgeraldeli/bd5c189fd8d2d17e9100ae18bc05d34c to your computer and use it in GitHub Desktop.
Save phgeraldeli/bd5c189fd8d2d17e9100ae18bc05d34c to your computer and use it in GitHub Desktop.
Get Jobs with specific log
String saida = new ProcessBuilder( 'sh', '-c','''
find ./jobs/ -name log | xargs grep -sl "xxxxxxxxxxx" | rev | cut -d '/' -f 4- | rev | uniq
''').redirectErrorStream(true).start().text
println( saida )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment