Skip to content

[FIXED] JENKINS-60473#235

Closed
ghost wants to merge 6 commits into
jenkinsci:masterfrom
dharmendra-gupta:JENKINS-60473
Closed

[FIXED] JENKINS-60473#235
ghost wants to merge 6 commits into
jenkinsci:masterfrom
dharmendra-gupta:JENKINS-60473

Conversation

@ghost

@ghost ghost commented Dec 15, 2020

Copy link
Copy Markdown

Just an attempt to improve #197
All credit goes to @mrsonicblue and @Bobby862

All I did optimized his code as he is away since 1 year (almost) and fixed java.io.NotSerializableException (his code was throwing this and even not properly running). Let me know what more to add or fix in this code.

@ghost

ghost commented Dec 15, 2020

Copy link
Copy Markdown
Author

@oleg-nenashev Can you please review?

@oleg-nenashev

Copy link
Copy Markdown
Member

CC @jenkinsci/code-reviewers

@jetersen

Copy link
Copy Markdown
Member

Can you revert the formatting changes, to make the code review easier?

@ghost

ghost commented Dec 15, 2020

Copy link
Copy Markdown
Author

@jetersen

I will do it tomorrow EOD.

@ghost

ghost commented Dec 16, 2020

Copy link
Copy Markdown
Author

Hi @jetersen,

I have reverted the formatting changes, also moved all new methods to bottom of each file.

Let me know if anything required from my end.

Thanks

@Override
public List<String> listProcess(@Nonnull EnvVars launchEnv, @Nonnull String containerId) throws IOException, InterruptedException {
if (isContainerUnix) {
return listProcessUnixContainer(launchEnv, containerId);

@shimpossible shimpossible Sep 4, 2021

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not supper.listProcess(...) ? DockerClient.listProcess is already unix specific code. And include "-eo", "pid,comm" to remove the {} that busybox can put around the process names.

@jglick jglick mentioned this pull request Sep 18, 2023
This pull request was closed.
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.

3 participants