Call shell unix after a build execution

Hi, I’ve launched a build on a jenkins and after the execution I’ve in the console output a link with the test result, I need to get this url from the console output after the build execution by a shell, using the current build number, and i need this link as output shell parameter. The file log is located here: /var/lib/jenkins/workspace/myjob/build/{BUILD_NUMBER}/ and the file name is “log”.
How I can do this?
Thanks all.

is this something a build produces? it should be artifact’ed so jenkins has access to it. You can also use the html publisher plugin.
is it something jenkins produces? jobs can’t really access things outside the workspace.

why not use the junit plugin and have the test results embedded into jenkins. It’ll give you history and a nice gui.

1 Like