Skip to content

Commit

Permalink
[JENKINS-71937] Fix deprecated Slave constructor (#8564)
Browse files Browse the repository at this point in the history
[JENKINS-71937] Fix deprecated Slave constructor

Got broken in #8395

Co-authored-by: Basil Crow <me@basilcrow.com>
  • Loading branch information
Vlatombe and basil authored Oct 6, 2023
1 parent b29b457 commit 6fdfdd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/Slave.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ protected Slave(@NonNull String name, String nodeDescription, String remoteFS, i
this.numExecutors = numExecutors;
this.mode = mode;
this.remoteFS = Util.fixNull(remoteFS).trim();
this.labelAtomSet = Collections.unmodifiableSet(Label.parse(labelString));
_setLabelString(labelString);
this.launcher = launcher;
this.retentionStrategy = retentionStrategy;
getAssignedLabels(); // compute labels now
Expand Down

0 comments on commit 6fdfdd0

Please sign in to comment.