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

Reduce the amount of duplicate logging when using kubernetes agents #90

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

Conversation

janssk1
Copy link

@janssk1 janssk1 commented Mar 3, 2024

When using the plugin on kubernetes based agents, all logs are duplicated.
This is introduced by https://github.com/jfrog/jenkins-jfrog-plugin/pull/63/files, where custom stdout handling was introduced to be able to extract the build info URL.

However, this does not work well with kubernetes agents. When the launcher provided by the kubernetes agent detects a custom stdout in the procstarter, it automatically does its own teeing, causing duplicate logs. Not sure if this is a bug in the kubernetes agent

This PR does not fix the problem, but reduces it's impact. Stdout tweaking is only done for the build publish command. Other commands (like eg mvn build) are untouched.

More details in #74

Copy link

github-actions bot commented Mar 3, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

Only the logging of the build publish command will get duplicated on kubernetes agents
@janssk1
Copy link
Author

janssk1 commented Mar 3, 2024

I have read the CLA Document and I hereby sign the CLA

@janssk1
Copy link
Author

janssk1 commented Mar 3, 2024

recheck

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.

1 participant