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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: copyartifact-plugin
    • Labels:
      None
    • Environment:
      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
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          scm_issue_link 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).

          Show
          scm_issue_link 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).
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          ikedam ikedam added a comment -

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

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: