Hello,
I’m currently looking for a more streamlined and efficient method to download a step build log from a finished build using a Groovy script in QuickBuild.
At the moment, I’m achieving this through the following steps (each point is a step):
Executed on the QuickBuild Server:
- Execute Script:
myFinishedBuild.saveStepLogAsText(stepPath, outputLogFile, false) - Publish Artifacts:The saved log file is published as an artifact.
Executed on the Agent:
- Execute Script:
build.getConfiguration().findArtifactStorage().download(build, 'FolderWhereMyStepLogIsStored', "*.txt, defaultexcludes=no", dst, true) - Process the Step Log:The log is then processed in the current build.
While this approach works, it introduces several extra steps and puts additional load on the server, which I’d prefer to avoid.
Is there a more efficient or direct way to retrieve and process a step log from a finished build within another build’s Groovy script—ideally without involving the server for artifact publishing?
Thanks in advance for your help!