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

Originally-Committed-As: fe9347435fd326cdd3bc2b7482d4b10922f1c160
  • Loading branch information
baaym committed Apr 2, 2011
1 parent c2600a9 commit ee3d323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/maven/RedeployPublisher.java
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 ee3d323

Please sign in to comment.