Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13517

CopyProjectLink plugin: does not work with jobs using 'display name' feature

      In Jenkins 1.454, the copy project link plugin does not work when copying a job which is using the new 'display name' feature.

      You can repro with these steps:

      • create job A and go to the configure page.
      • click the Advanced... button next in the 'Advanced Project Options section.
      • set the Display Name to something like 'My job'
      • save the config page
      • on the main job page, click the 'Copy project' link to copy it
      • note the URL has the (internal) job name – 'A' (good)
      • enter a new job name, and click OK.

      At this point, you get an error message of the form:

      Error
      No such job: My job

      A workaround is to use the normal 'new job' approach for copying a job.

          [JENKINS-13517] CopyProjectLink plugin: does not work with jobs using 'display name' feature

          Garrett Boast added a comment -

          I've submitted a pull request that resolves this: https://github.com/jenkinsci/copy-project-link-plugin/pull/3

          Garrett Boast added a comment - I've submitted a pull request that resolves this: https://github.com/jenkinsci/copy-project-link-plugin/pull/3

          This is still a problem, can anyone take a look at the pull request?

          Tomasz Śniatowski added a comment - This is still a problem, can anyone take a look at the pull request?

          Code changed in jenkins
          User: etherfoundry
          Path:
          src/main/java/hudson/plugins/copyProjectLink/CopyAction.java
          http://jenkins-ci.org/commit/copy-project-link-plugin/79bc4c465f4a4611d00cb1027f95ca6ac5c1f8fe
          Log:
          Resolving issue JENKINS-13517 caused by using DisplayName that prevented copying of projects with a Display Name set.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: etherfoundry Path: src/main/java/hudson/plugins/copyProjectLink/CopyAction.java http://jenkins-ci.org/commit/copy-project-link-plugin/79bc4c465f4a4611d00cb1027f95ca6ac5c1f8fe Log: Resolving issue JENKINS-13517 caused by using DisplayName that prevented copying of projects with a Display Name set.

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          src/main/java/hudson/plugins/copyProjectLink/CopyAction.java
          http://jenkins-ci.org/commit/copy-project-link-plugin/4fa35d6ba88ab35513dcf213ed3f17c2817ffe3a
          Log:
          Merge pull request #3 from etherfoundry/master

          Resolving issue JENKINS-13517 (DisplayName)

          Compare: https://github.com/jenkinsci/copy-project-link-plugin/compare/eb604e69ca94...4fa35d6ba88a

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: src/main/java/hudson/plugins/copyProjectLink/CopyAction.java http://jenkins-ci.org/commit/copy-project-link-plugin/4fa35d6ba88ab35513dcf213ed3f17c2817ffe3a Log: Merge pull request #3 from etherfoundry/master Resolving issue JENKINS-13517 (DisplayName) Compare: https://github.com/jenkinsci/copy-project-link-plugin/compare/eb604e69ca94...4fa35d6ba88a

          Fixed in 1.4.

          Oliver Gondža added a comment - Fixed in 1.4.

            Unassigned Unassigned
            sroth Steve Roth
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: