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

"Unable to find project" in "Permission to Copy Artifact - Projects to allow copy artifacts" with multi-configuration projects

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • copyartifact-plugin
    • None
    • Ubuntu 14.04 x86_64
      Oracle JDK 1.7
      Jenkins ver. 1.642.1
      Copy Artifact Plugin ver 1.37
      CloudBees Folders Plugin ver 5.1

      Related to: JENKINS-14999

      To use input parameter variable in "project name" of "copy artifacts from another project",
      you must set proper read permission at upstream job.

      At upstream job while working together with CloudBees Folders Plugin,
      "Permission to Copy Artifact - Projects to allow copy artifacts"
      display a misleading warning "Unable to find project: DOWNSTREAM_PROJECT_NAME"
      when using DOWNSTREAM_PROJECT_NAME only without "FOLDERNAME" prefix.

      When using full complete name together with FOLDER_NAME,
      such as "FOLDERNAME/DOWNSTREAM_PROJECT_NAME",
      "Permission to Copy Artifact - Projects to allow copy artifacts" will not display warning.
      However,
      the downstream job is unable to copy artifacts with error:

      ERROR: Unable to find project for artifact copy: FOLDER_NAME/DOWNSTREAM_PROJECT_NAME
      This may be due to incorrect project name or permission settings; see help for project name in job configuration.
      

      If it's intended to use PROJECT_NAME only without full-name to include FOLDER_NAME,
      then it should not display this misleading warning.
      Also this note should put together with HELP string.

          [JENKINS-33257] "Unable to find project" in "Permission to Copy Artifact - Projects to allow copy artifacts" with multi-configuration projects

          Rick Liu added a comment -

          The list of installed plugins and versions.

          Rick Liu added a comment - The list of installed plugins and versions.

          Rick Liu added a comment -

          Jenkins System Information

          Rick Liu added a comment - Jenkins System Information

          ikedam added a comment -

          Reproduced in my environment with multi-configuration projects!
          Thanks for reports.

          Copyartifact misunderstood that the multi-configuration project is a folder (because it can contain child projects, that is, axis combinations) and calculates the relative names from the project itself.
          You can see the auto-completion works for "../DOWNSTREAM_PROJECT_NAME".

          ikedam added a comment - Reproduced in my environment with multi-configuration projects! Thanks for reports. Copyartifact misunderstood that the multi-configuration project is a folder (because it can contain child projects, that is, axis combinations) and calculates the relative names from the project itself. You can see the auto-completion works for "../DOWNSTREAM_PROJECT_NAME".

          ikedam added a comment -

          Created a pull request: https://github.com/jenkinsci/copyartifact-plugin/pull/81

          totoroliu I also updated the help text and clarified how to specify project names in the pull request. (help-projectNames.html)
          Would review that text?

          ikedam added a comment - Created a pull request: https://github.com/jenkinsci/copyartifact-plugin/pull/81 totoroliu I also updated the help text and clarified how to specify project names in the pull request. (help-projectNames.html) Would review that text?

          Rick Liu added a comment -

          Thank you very much ikedam ~
          Your fix looks great.
          I'll wait for the next official release to test it out.

          Rick Liu added a comment - Thank you very much ikedam ~ Your fix looks great. I'll wait for the next official release to test it out.

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/hudson/plugins/copyartifact/CopyArtifactPermissionProperty.java
          src/main/resources/hudson/plugins/copyartifact/CopyArtifactPermissionProperty/help-projectNames.html
          src/main/resources/hudson/plugins/copyartifact/CopyArtifactPermissionProperty/help-projectNames_ja.html
          src/test/java/hudson/plugins/copyartifact/CopyArtifactPermissionPropertyTest.java
          http://jenkins-ci.org/commit/copyartifact-plugin/1838f55964fb3d1c981fde20f251819f5e89707f
          Log:
          [FIXED JENKINS-33257] Fixes wrong auto-completions and validations for matrix project. also make `CopyArtifactPermissionProperty` applicable to pipeline jobs (aka. workflow jobs).

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/copyartifact/CopyArtifactPermissionProperty.java src/main/resources/hudson/plugins/copyartifact/CopyArtifactPermissionProperty/help-projectNames.html src/main/resources/hudson/plugins/copyartifact/CopyArtifactPermissionProperty/help-projectNames_ja.html src/test/java/hudson/plugins/copyartifact/CopyArtifactPermissionPropertyTest.java http://jenkins-ci.org/commit/copyartifact-plugin/1838f55964fb3d1c981fde20f251819f5e89707f Log: [FIXED JENKINS-33257] Fixes wrong auto-completions and validations for matrix project. also make `CopyArtifactPermissionProperty` applicable to pipeline jobs (aka. workflow jobs).

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/hudson/plugins/copyartifact/CopyArtifactPermissionProperty.java
          src/main/resources/hudson/plugins/copyartifact/CopyArtifactPermissionProperty/help-projectNames.html
          src/main/resources/hudson/plugins/copyartifact/CopyArtifactPermissionProperty/help-projectNames_ja.html
          src/test/java/hudson/plugins/copyartifact/CopyArtifactPermissionPropertyTest.java
          http://jenkins-ci.org/commit/copyartifact-plugin/dad658de2356c56fe2103bf27c9a70f11b01894e
          Log:
          Merge pull request #81 from ikedam/feature/JENKINS-33257_FixCopyArtifactPermissionProperty

          JENKINS-33257 Fix auto-completions and validations of CopyArtifactPermissionProperty

          Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/a34592bc7bfd...dad658de2356

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/copyartifact/CopyArtifactPermissionProperty.java src/main/resources/hudson/plugins/copyartifact/CopyArtifactPermissionProperty/help-projectNames.html src/main/resources/hudson/plugins/copyartifact/CopyArtifactPermissionProperty/help-projectNames_ja.html src/test/java/hudson/plugins/copyartifact/CopyArtifactPermissionPropertyTest.java http://jenkins-ci.org/commit/copyartifact-plugin/dad658de2356c56fe2103bf27c9a70f11b01894e Log: Merge pull request #81 from ikedam/feature/ JENKINS-33257 _FixCopyArtifactPermissionProperty JENKINS-33257 Fix auto-completions and validations of CopyArtifactPermissionProperty Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/a34592bc7bfd...dad658de2356

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
          src/main/java/hudson/plugins/copyartifact/CopyArtifactPermissionProperty.java
          http://jenkins-ci.org/commit/copyartifact-plugin/c86d948f2b4904bda17bae2ec1e11362686b7209
          Log:
          Fix Javadoc issues introduced in JENKINS-33257

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/copyartifact/CopyArtifact.java src/main/java/hudson/plugins/copyartifact/CopyArtifactPermissionProperty.java http://jenkins-ci.org/commit/copyartifact-plugin/c86d948f2b4904bda17bae2ec1e11362686b7209 Log: Fix Javadoc issues introduced in JENKINS-33257

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
          src/main/java/hudson/plugins/copyartifact/CopyArtifactPermissionProperty.java
          http://jenkins-ci.org/commit/copyartifact-plugin/1f34b2557f8bbf182e9cd97184685df364e8fff7
          Log:
          Merge pull request #83 from ikedam/feature/JENKINS-33257_FixJavadoc

          Fix Javadoc issues introduced in JENKINS-33257

          Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/9da068ef5495...1f34b2557f8b

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/copyartifact/CopyArtifact.java src/main/java/hudson/plugins/copyartifact/CopyArtifactPermissionProperty.java http://jenkins-ci.org/commit/copyartifact-plugin/1f34b2557f8bbf182e9cd97184685df364e8fff7 Log: Merge pull request #83 from ikedam/feature/ JENKINS-33257 _FixJavadoc Fix Javadoc issues introduced in JENKINS-33257 Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/9da068ef5495...1f34b2557f8b

          ikedam added a comment -

          Released 1.38 containing this fix.
          It will be available in the update center in a day.

          ikedam added a comment - Released 1.38 containing this fix. It will be available in the update center in a day.

            ikedam ikedam
            totoroliu Rick Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: