Skip to content

[FIXED] JENKINS-60473 #235

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

Closed
wants to merge 6 commits into from
Closed

[FIXED] JENKINS-60473 #235

wants to merge 6 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Dec 15, 2020

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

ghost commented Dec 15, 2020

@oleg-nenashev Can you please review?

@oleg-nenashev
Copy link
Member

CC @jenkinsci/code-reviewers

@jetersen
Copy link
Member

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

@ghost
Copy link
Author

ghost commented Dec 15, 2020

@jetersen

I will do it tomorrow EOD.

@ghost
Copy link
Author

ghost commented Dec 16, 2020

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

@@ -61,6 +73,9 @@ public String run(@Nonnull EnvVars launchEnv, @Nonnull String image, @CheckForNu

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

@shimpossible shimpossible Sep 4, 2021

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