Robin
I am using a CLI tool that I have no access to it's code, the information I wish to return to the build flow is in the CLI STD output, I have tried to add a script in the Post-Execute Action and with the idea to analyze the log output of the CLI and using some String manipulation and vars.get().setValue() to communicate the information picked up from the log to the other steps int he build.
I added this code:
groovy:
logger.info "build ==" + build;
logger.info "Output ==" + build.renderLogAsText();
I get a object of the build alright, but the nothing back from build.renderLogAsText()
I assumed that log is not ready at the time of the execution and tried build.getPrevious().renderLogAsText(); - this also return nothing
Any idea of now to properly analyze a CLI output ?
Note: I have seen the Analyze logs option ... I am not trying to decide the success - I am trying to get info from the log stream.
P.S. the log is something like: "Map version found - 1.02 - new map version is - 1.05"