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

Pass through Matrix build values.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Although the plugin can copy artifacts from a specified axis without problem, it doesnt seem to be able to substitute parameters from a matrix project to select the appropiate axis from a sub job.

      i.e.

      Job1 is a matrix project that builds shared objects for a variety of platforms e.g. linux/windows/mac

      Job2 is a matrix project that builds an executable that depends on Job1 shared object, copyartifact should only copy the axis that is relevant. e.g Job1/Platform=$Platform

      There are workarounds for this, but they get very messy and involve copying every combination over. Is this possible? Is it already possible and I missed it?

      Many Thanks,
      Paul.

        Attachments

          Activity

          Hide
          mindless Alan Harder added a comment -

          As you might guess, I never tried my plugin with a matrix project at all.. I was pleased to find it won't take much to make this work.

          1) some text in the help about using matrix projects.. turns out you can enter something like "my-matrix-job/jdk=1.5" to get a particular configuration of a matrix project (sounds like you figured that out).
          2) expand variables in the project name as already done for artifacts to copy and target path.. THEN you'll be able to make a new matrix project with axes matching some other job, and use copyartifact with source project = other-matrix-job/jdk=$jdk

          Show
          mindless Alan Harder added a comment - As you might guess, I never tried my plugin with a matrix project at all.. I was pleased to find it won't take much to make this work. 1) some text in the help about using matrix projects.. turns out you can enter something like "my-matrix-job/jdk=1.5" to get a particular configuration of a matrix project (sounds like you figured that out). 2) expand variables in the project name as already done for artifacts to copy and target path.. THEN you'll be able to make a new matrix project with axes matching some other job, and use copyartifact with source project = other-matrix-job/jdk=$jdk
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/plugins/copyartifact/src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
          trunk/hudson/plugins/copyartifact/src/main/resources/hudson/plugins/copyartifact/CopyArtifact/help-projectName.html
          trunk/hudson/plugins/copyartifact/src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
          http://jenkins-ci.org/commit/30053
          Log:
          [copyartifact] [FIXED JENKINS-6242]
          Add parameter expansion in name of project to copy from
          and add some help text about copying from matrix jobs.
          Also use run.getFullDisplayName() in msg written to console.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/plugins/copyartifact/src/main/java/hudson/plugins/copyartifact/CopyArtifact.java trunk/hudson/plugins/copyartifact/src/main/resources/hudson/plugins/copyartifact/CopyArtifact/help-projectName.html trunk/hudson/plugins/copyartifact/src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java http://jenkins-ci.org/commit/30053 Log: [copyartifact] [FIXED JENKINS-6242] Add parameter expansion in name of project to copy from and add some help text about copying from matrix jobs. Also use run.getFullDisplayName() in msg written to console.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/plugins/copyartifact/src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
          trunk/hudson/plugins/copyartifact/src/main/resources/hudson/plugins/copyartifact/CopyArtifact/help-projectName.html
          trunk/hudson/plugins/copyartifact/src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
          http://jenkins-ci.org/commit/30053
          Log:
          [copyartifact] [FIXED JENKINS-6242]
          Add parameter expansion in name of project to copy from
          and add some help text about copying from matrix jobs.
          Also use run.getFullDisplayName() in msg written to console.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/plugins/copyartifact/src/main/java/hudson/plugins/copyartifact/CopyArtifact.java trunk/hudson/plugins/copyartifact/src/main/resources/hudson/plugins/copyartifact/CopyArtifact/help-projectName.html trunk/hudson/plugins/copyartifact/src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java http://jenkins-ci.org/commit/30053 Log: [copyartifact] [FIXED JENKINS-6242] Add parameter expansion in name of project to copy from and add some help text about copying from matrix jobs. Also use run.getFullDisplayName() in msg written to console.
          Hide
          mindless Alan Harder added a comment -

          This change just released in CopyArtifact 1.2 .. should show up in Update Center in a few hours. Note you'll need to upgrade to just-released Hudson 1.355 to use this version (sorry, needed a core change to support some of the other work in this release).

          Show
          mindless Alan Harder added a comment - This change just released in CopyArtifact 1.2 .. should show up in Update Center in a few hours. Note you'll need to upgrade to just-released Hudson 1.355 to use this version (sorry, needed a core change to support some of the other work in this release).
          Hide
          pdwakefield pdwakefield added a comment -

          Have upgraded to Hudson 1.355, but no sign of the CopyArtifact 1.2 update...

          Show
          pdwakefield pdwakefield added a comment - Have upgraded to Hudson 1.355, but no sign of the CopyArtifact 1.2 update...
          Hide
          mindless Alan Harder added a comment -

          yes, publishing of plugin releases has been broken since late last week. Hopefully it will be fixed soon..

          Show
          mindless Alan Harder added a comment - yes, publishing of plugin releases has been broken since late last week. Hopefully it will be fixed soon..

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              pdwakefield pdwakefield
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: