Jan Feindt commented on Bug JENKINS-24171

Possibly I ran into the same problem: using "Compress Build Log Plugin" everything is fine until I choose to rescan the Builds with BFA.
So I think one solution is to "not change the old build log" in this use case using a NullOutputStream instead of a FileOutputStream with the old build log.

In com.sonyericsson.jenkins.plugins.bfa.sod.ScanOnDemandTask.scanBuild(AbstractBuild)
change line
fos = new FileOutputStream(abstractBuild.getLogFile(), true);
to
fos = new NullOutputStream();

Another solution is to check if file is gzipped and then use NullOutputStream or decompress first, change logfile, compress after BFA is done.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to