diff --git a/changelog.html b/changelog.html index dd40be47954f2d6423a1918c6a68f732651d0a6a..a73ba97b9edbd70bda6f19e7b0021c449f1ad889 100644 --- a/changelog.html +++ b/changelog.html @@ -64,6 +64,9 @@ Upcoming changes
  • Amend JAVA_HOME check to work with JDK 9. (issue 25601) +
  • + CLI list-jobs command should display raw name, not display name, where they differ. + (issue 25338)
  • Better support functional tests from Gradle-based plugins. (issue 26331) diff --git a/core/src/main/java/hudson/cli/ListJobsCommand.java b/core/src/main/java/hudson/cli/ListJobsCommand.java index bdb64208d5c827c71968be3ada50902960a28a78..97ea8d29671f992d942a72639dc604c99f654d2e 100644 --- a/core/src/main/java/hudson/cli/ListJobsCommand.java +++ b/core/src/main/java/hudson/cli/ListJobsCommand.java @@ -82,7 +82,7 @@ public class ListJobsCommand extends CLICommand { // Print all jobs. for (TopLevelItem item : jobs) { - stdout.println(item.getDisplayName()); + stdout.println(item.getName()); } return 0;