Skip to content

Commit

Permalink
Fixed JENKINS-9084: Made sure the correct slave is detected even when…
Browse files Browse the repository at this point in the history
… it's the Master
  • Loading branch information
baaym committed Apr 2, 2011
1 parent f46e44b commit fe93474
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -187,7 +187,7 @@ private MavenEmbedder createEmbedder(TaskListener listener, AbstractBuild<?,?> b

String altSettingsPath = ((MavenModuleSet) project).getAlternateSettings();

Node buildNode = Hudson.getInstance().getNode( build.getBuiltOnStr() );
Node buildNode = build.getBuiltOn();

if (StringUtils.isBlank( altSettingsPath ) ) {
// get userHome from the node where job has been executed
Expand Down

0 comments on commit fe93474

Please sign in to comment.