• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • cli
    • None
    • JENKINS WAR VERSION 1.586
      WINDOWS SERVER 2008 R2 ENTERPRISE
      AMD OPTERON(TM) PROCESSOR 6136 2.4 GHZ (2 PROCESSORS)
      4.0 GB RAM
      64-BIT OPERATION SYSTEM
      WEBSPHERE APPLICATION SERVER 8.5.5

      Currently the list-jobs prints out the "Display Name" in the advanced option configuration of the job. However other commands such as get-job requires the "Project Name". Can the commands be either changed to accept either of these names or have parameters on the list-jobs to select which name to print out. get-job submits an error while using the "Display Name" which states the project name in it. For example if the "Display Name" is "My Build" and project name is "MY_BUILD" if you do get-job "My Build" it gives you the error "No such job 'My Build'; perhaps you meant 'MY_BUILD'?

          [JENKINS-25338] list-jobs cli

          Daniel Beck added a comment -

          Ugh. Yeah, we changed that a while back because it was stupid for the reason you mentioned, decided to write a new 'list-items' command, that stalled, and we still have the weird behavior.

          I'll submit a PR.

          Daniel Beck added a comment - Ugh. Yeah, we changed that a while back because it was stupid for the reason you mentioned, decided to write a new 'list-items' command, that stalled, and we still have the weird behavior. I'll submit a PR.

          Daniel Beck added a comment -

          Daniel Beck added a comment - Proposed solution in https://github.com/jenkinsci/jenkins/pull/1497

          Code changed in jenkins
          User: Daniel Beck
          Path:
          core/src/main/java/hudson/cli/ListJobsCommand.java
          http://jenkins-ci.org/commit/jenkins/2647af48c81e17ea17bfb144bf804abea22530fe
          Log:
          [FIXED JENKINS-25338] Show job name rather than display name in CLI

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/java/hudson/cli/ListJobsCommand.java http://jenkins-ci.org/commit/jenkins/2647af48c81e17ea17bfb144bf804abea22530fe Log: [FIXED JENKINS-25338] Show job name rather than display name in CLI

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          core/src/main/java/hudson/cli/ListJobsCommand.java
          http://jenkins-ci.org/commit/jenkins/8e5199e377c748907b823bdcbbbda223e3e43c80
          Log:
          JENKINS-25338 Noting merge of #1497.

          Compare: https://github.com/jenkinsci/jenkins/compare/b33b921dc5d4...8e5199e377c7

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/cli/ListJobsCommand.java http://jenkins-ci.org/commit/jenkins/8e5199e377c748907b823bdcbbbda223e3e43c80 Log: JENKINS-25338 Noting merge of #1497. Compare: https://github.com/jenkinsci/jenkins/compare/b33b921dc5d4...8e5199e377c7

          dogfood added a comment -

          Integrated in jenkins_main_trunk #3924
          [FIXED JENKINS-25338] Show job name rather than display name in CLI (Revision 2647af48c81e17ea17bfb144bf804abea22530fe)

          Result = SUCCESS
          daniel-beck : 2647af48c81e17ea17bfb144bf804abea22530fe
          Files :

          • core/src/main/java/hudson/cli/ListJobsCommand.java

          dogfood added a comment - Integrated in jenkins_main_trunk #3924 [FIXED JENKINS-25338] Show job name rather than display name in CLI (Revision 2647af48c81e17ea17bfb144bf804abea22530fe) Result = SUCCESS daniel-beck : 2647af48c81e17ea17bfb144bf804abea22530fe Files : core/src/main/java/hudson/cli/ListJobsCommand.java

            danielbeck Daniel Beck
            bcoveny Bruce Coveny
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: