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

Copy artifacts from the upstream matrix job

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: copyartifact-plugin
    • Labels:
      None
    • Similar Issues:
      Show 5 results

      Description

      Two matrix jobs A and B. B is the downstream job trigged by A. B copies the artifacts from A by using Copy Artifacts plugin. B cannot copy the artifacts from the build of A which triggers the build of B.

      When the option "Which build" is "Upstream build that trigger this job", the term "upstream build" here actually refers to the "parent build" of job B, instead of the build of job A which triggers B.

        Attachments

          Activity

          Hide
          mindless Alan Harder added a comment -

          ya, since the matrix parent project triggers the individual configurations, the "upstream" checking doesn't work as expected.. I'll add some special-casing for matrix.

          Show
          mindless Alan Harder added a comment - ya, since the matrix parent project triggers the individual configurations, the "upstream" checking doesn't work as expected.. I'll add some special-casing for matrix.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alanharder
          Path:
          src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java
          src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
          http://jenkins-ci.org/commit/copyartifact-plugin/b9b151718fa30e3ba5370dbb5ab2a9f0241718b5
          Log:
          [FIXED JENKINS-9729] account for matrix parent triggering each configuration,
          to make TriggeredBuildSelector support copying to/from matrix projects.

          Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/e796b11...b9b1517

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alanharder Path: src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java http://jenkins-ci.org/commit/copyartifact-plugin/b9b151718fa30e3ba5370dbb5ab2a9f0241718b5 Log: [FIXED JENKINS-9729] account for matrix parent triggering each configuration, to make TriggeredBuildSelector support copying to/from matrix projects. Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/e796b11...b9b1517
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_copyartifact #52
          [FIXED JENKINS-9729] account for matrix parent triggering each configuration,

          alanharder : b9b151718fa30e3ba5370dbb5ab2a9f0241718b5
          Files :

          • src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java
          • src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_copyartifact #52 [FIXED JENKINS-9729] account for matrix parent triggering each configuration, alanharder : b9b151718fa30e3ba5370dbb5ab2a9f0241718b5 Files : src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              alex_barna Tzuchien
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: