Skip to content

Commit

Permalink
JENKINS-74974 - Adapt to Scriptler 390+
Browse files Browse the repository at this point in the history
Scriptler 390 and above use "(built-in)" to refer to the built-in node
instead of "(controller)" or "(master)". Update the test harness to
match this.
  • Loading branch information
mtughan committed Dec 10, 2024
1 parent ad3e0ee commit ed08f50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public ScriptResult(String result) {

public String output(Node node) {
String name = node.getName();
if (node instanceof Jenkins && "(master)".equals(name)) {
name = "(controller)";
if (node instanceof Jenkins) {
name = "(" + name + ")";
}
return output(name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public <T extends PageObject> T getPluginPage(Class<T> type) {

@Override
public String getName() {
return "(master)";
return "built-in";
}

@Override
Expand Down

0 comments on commit ed08f50

Please # to comment.