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

Project source of a multi-config project inside a folder not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: copyartifact-plugin
    • Labels:
      None
    • Environment:
      jenkins 1.540
      copyartifact plug-in 1.28
      folder plug-in 4.0.1
    • Similar Issues:

      Description

      I have a case where the project name field of the copy artifact build step remains empty after saving the job configuraiton.

      This happens when the source job is in the same folder (cloudbees folder plug-in) as the current job (the one that copy artifacts) and the current job is a multi-configuration job. See the following for a configuration example:

      • Test (Cloudbees folder "pseudo-job")
      • Test/Job1 (freestyle job that saves some artifacts inside the 'Test' folder)
      • Test/Job2 (multi-configuration job that try to copy Job1's artifacts inside the 'Test' folder)

      Note that I don't see the issue if 'Job2' is a freestyle job of the 'Test' folder. I don't see the issue neither if 'Job2' is a multi-configuration job not placed in any folder ('Job1' remains in the 'Test' folder).

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          pom.xml
          src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
          http://jenkins-ci.org/commit/copyartifact-plugin/db1e878df26acea9e627716fd538a8fcaea3ecbd
          Log:
          JENKINS-20940 Added a test to reproduce JENKINS-20940. Fails to copy from a matrix project in the same folder.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: pom.xml src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java http://jenkins-ci.org/commit/copyartifact-plugin/db1e878df26acea9e627716fd538a8fcaea3ecbd Log: JENKINS-20940 Added a test to reproduce JENKINS-20940 . Fails to copy from a matrix project in the same folder.
          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
          http://jenkins-ci.org/commit/copyartifact-plugin/06fa45810ca4aaddc93fa0becba0e08160b7a695
          Log:
          [FIXED JENKINS-20940] Use rootProject as copying sources. This allows correct project name resolving from matrix projects.

          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 http://jenkins-ci.org/commit/copyartifact-plugin/06fa45810ca4aaddc93fa0becba0e08160b7a695 Log: [FIXED JENKINS-20940] Use rootProject as copying sources. This allows correct project name resolving from matrix projects.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
          http://jenkins-ci.org/commit/copyartifact-plugin/2b0845a38433e36672b6dcee9c7ccad44ba6d2b3
          Log:
          JENKINS-20940 Fix permissionTest not to run the constructor directly, but to use UI.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java http://jenkins-ci.org/commit/copyartifact-plugin/2b0845a38433e36672b6dcee9c7ccad44ba6d2b3 Log: JENKINS-20940 Fix permissionTest not to run the constructor directly, but to use UI.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          pom.xml
          src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
          src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
          http://jenkins-ci.org/commit/copyartifact-plugin/b33ceb5d1cd5f59ea4e4b7248acdf74aec9be9a2
          Log:
          Merge pull request #40 from ikedam/feature/JENKINS-20940_relativeFromMatrix

          JENKINS-20940 relative project names from matrix projects.

          Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/1cc07c249d2b...b33ceb5d1cd5

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: pom.xml src/main/java/hudson/plugins/copyartifact/CopyArtifact.java src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java http://jenkins-ci.org/commit/copyartifact-plugin/b33ceb5d1cd5f59ea4e4b7248acdf74aec9be9a2 Log: Merge pull request #40 from ikedam/feature/ JENKINS-20940 _relativeFromMatrix JENKINS-20940 relative project names from matrix projects. Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/1cc07c249d2b...b33ceb5d1cd5
          Hide
          ikedam ikedam added a comment -

          Released the fix in copyartifact 1.31.

          Show
          ikedam ikedam added a comment - Released the fix in copyartifact 1.31.

            People

            • Assignee:
              ikedam ikedam
              Reporter:
              greydet Gonzague Reydet
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: