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-32648] log the name of the node. #5

Merged
merged 1 commit into from Feb 10, 2016

Conversation

jtnord
Copy link
Member

@jtnord jtnord commented Jan 27, 2016

When running print the name of the node that executes the remote command.

JENKINS-32648
@reviewbybees

When running print the name of the node that executes the remote command.
@ghost
Copy link

ghost commented Jan 27, 2016

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@@ -124,6 +124,8 @@ public void run() {
try {
Computer c = Computer.currentComputer();
Node n = c.getNode();
String nodeName = n.getNodeName().equals("") ? "master" : n.getNodeName();

Choose a reason for hiding this comment

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

Can n.getNodeName() be null?

Copy link
Member Author

Choose a reason for hiding this comment

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

no. it is @NonNull Javadoc

@oleg-nenashev
Copy link
Member

Would be also useful to have a test for runs on master.
LGTM by the way

@jtnord
Copy link
Member Author

jtnord commented Jan 27, 2016

Would be also useful to have a test for runs on master.

@oleg-nenashev that is what testRunOnMaster() does.

If you know of a way to check that the task actually ran on a specific node I will add it (but I was not aware of one for a Task as opposed to a Run)

@jtnord
Copy link
Member Author

jtnord commented Feb 10, 2016

@reviewbybees done

jtnord added a commit that referenced this pull request Feb 10, 2016
[FIXED JENKINS-32648] log the name of the node.
@jtnord jtnord merged commit 1f7b851 into jenkinsci:master Feb 10, 2016
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