Skip to content

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

Open
janssk1 wants to merge 1 commit into
jfrog:mainfrom
janssk1:reduce-duplicate-logging
Open

Reduce the amount of duplicate logging when using kubernetes agents#90
janssk1 wants to merge 1 commit into
jfrog:mainfrom
janssk1:reduce-duplicate-logging

Conversation

@janssk1
Copy link
Copy Markdown

@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

@github-actions
Copy link
Copy Markdown

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
Copy Markdown
Author

janssk1 commented Mar 3, 2024

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

@janssk1
Copy link
Copy Markdown
Author

janssk1 commented Mar 3, 2024

recheck

@nikolaydnedelkov
Copy link
Copy Markdown

Hello, can this be reviewd please ?

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