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

Make the name field in the pod template the pod name #134

Merged
merged 1 commit into from
Feb 15, 2017

Conversation

austinmoore-
Copy link
Contributor

With this PR, you can set name in the podTemplate, and the pod launched in K8s will have the name set (with random UUID at the end). It will also sets the Jenkins Node name.

@@ -44,7 +44,8 @@ public boolean start() throws Exception {
cloud.getClass().getName()));
}
KubernetesCloud kubernetesCloud = (KubernetesCloud) cloud;
String name = String.format(NAME_FORMAT, UUID.randomUUID().toString().replaceAll("-", ""));
String uuid = UUID.randomUUID().toString().replaceAll("-", "");
Copy link
Contributor

Choose a reason for hiding this comment

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

This line, seems unnecessary to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

he just split it into two lines

LGTM

Copy link
Contributor

@iocanel iocanel left a comment

Choose a reason for hiding this comment

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

This was so much needed! Thanks!
Add a minor (not blocker comment) so, it looks good to me!

@iocanel iocanel merged commit b55c773 into jenkinsci:master Feb 15, 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
Development

Successfully merging this pull request may close these issues.

3 participants