Created
June 28, 2021 17:17
-
-
Save phgeraldeli/bd5c189fd8d2d17e9100ae18bc05d34c to your computer and use it in GitHub Desktop.
Get Jobs with specific log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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