Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AdamBrousseau
Copy link

Fixes issue related to JEP-210.

Signed-off-by: Adam Brousseau [email protected]

Fixes issue related to JEP-210.

Signed-off-by: Adam Brousseau <[email protected]>
@AdamBrousseau
Copy link
Author

@daniel-beck please review.
This is my first contribution to a Jenkins plugin. It seems to work locally and I have tested the theory on one of my production instances.

@jglick
Copy link
Member

jglick commented Jul 14, 2020

I am not sure what this is doing or how it addresses JENKINS-54678.

@AdamBrousseau
Copy link
Author

As per the comments in the issue and my own testing, having the compressed log file named log (without the extension) allows Jenkins to render the file. Further, having a symlink log pointing at the compressed log.gz file also works. This pr simply created that symlink.

@jglick
Copy link
Member

jglick commented Jul 14, 2020

allows Jenkins to render the file

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 workflow-job.

@AdamBrousseau
Copy link
Author

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.

@jglick
Copy link
Member

jglick commented Jul 15, 2020

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.

Then something is broken, not sure what offhand.

@AdamBrousseau
Copy link
Author

Then something is broken

Quite the opposite from my point of view 😆

Copy link
Member

@jglick jglick left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants