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

Fixed: JENKINS-40925 - dir context is not honored by shell step #146

Merged
merged 3 commits into from
Mar 10, 2017

Conversation

electroma
Copy link
Contributor

It looks too easy.
Please let me know if there is a reason not to use command's pwd.

@iocanel
Copy link
Contributor

iocanel commented Mar 2, 2017

I am not familiar with dir context, but the code looks good and tests seem to pass.
@carlossg can you have a look too?

@electroma
Copy link
Contributor Author

electroma commented Mar 8, 2017

@carlossg can you have a look please?

Copy link
Contributor

@carlossg carlossg left a comment

Choose a reason for hiding this comment

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

Just a minor comment. If minikube tests pass then it's good

@@ -72,7 +70,6 @@ public ContainerExecDecorator(KubernetesClient client, String podName, String co
this.client = client;
this.podName = podName;
this.containerName = containerName;
this.path = path;
Copy link
Contributor

Choose a reason for hiding this comment

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

if path is removed, then the constructor should be deprecated and a new one without path argument added

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@carlossg there is only one usage of this constructor, so I can just change the signature inplace.
Do I still need to deprecate and create new one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've removed unused parameter

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, better to copy and deprecate to keep backwards binary compatibility

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@carlossg green light

@carlossg carlossg merged commit 27280f1 into jenkinsci:master Mar 10, 2017
rawlingsj pushed a commit to fabric8io/kubernetes-plugin that referenced this pull request Apr 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants