-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-54678] Add symlink to compressed log #11
base: master
Are you sure you want to change the base?
Conversation
Fixes issue related to JEP-210. Signed-off-by: Adam Brousseau <[email protected]>
@daniel-beck please review. |
I am not sure what this is doing or how it addresses JENKINS-54678. |
As per the comments in the issue and my own testing, having the compressed log file named |
When used on a Pipeline build? I cannot imagine how that could be. The transparent decompression hack in Jenkins core is present in code which is overridden by |
Seems to work. On a given pipeline job (on a prod instance), I can either rename the log.gz to log or I can create a symlink and it works. The code change I've only tested in the test environment but it worked (created the symlink as expected) on a freestyle build. |
Then something is broken, not sure what offhand. |
Quite the opposite from my point of view 😆 |
Ah, I see, https://github.com/jenkinsci/jenkins/blob/a510c0c8511af4f72c88938bb24a5207185009f2/core/src/main/java/hudson/console/AnnotatedLargeText.java#L84-L85 as called by https://github.com/jenkinsci/workflow-api-plugin/blob/2e0755dc5d8de75d2e4d42a4aade18a18a1c9e11/src/main/java/org/jenkinsci/plugins/workflow/log/FileLogStorage.java#L199 turns on automatic gzip detection. Basically a bug in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not advise this, as it only happens to work due to a mistake in current code.
Fixes issue related to JEP-210.
Signed-off-by: Adam Brousseau [email protected]