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

Build artifact never used by downstream build

    Details

    • Similar Issues:

      Description

      This issue appears in the "Copy Artifact Plugin" Jenkins plugin, when the option "Upstream build that triggered this job" is selected.

      Reproduction:
      1. Create a "Build A" that stores an artifact at the end of each build
      2. Create a "Build B" that is a downstream of "Build A" (Build A --> Build B)
      3. Make "Build B" to block while "Build A" is building
      4. Make "Build B" to copy the artifact from "Upstream build that triggered this job"
      5. Trigger the "Build A" twice (e.g. build 1 and then build 2)
      6. "Build B" will be triggered once, but in the logs it will have the following:

      Started by upstream project "Build A" build number 1
      originally caused by:
       Started by user <Your user name>
      Started by upstream project "Build A" build number 2
      originally caused by:
       Started by user <Your user name>
      

      However, it will also say:

      Copied 1 artifact from "Build A" build number 1
      

      Issue:
      The "Build B" will never copy the artifacts of the build 2
      This means that someone will have to manually trigger "Build B"

        Attachments

          Activity

          Hide
          ikedam ikedam added a comment -

          Use "Which for multiple upstream" in the advanced section.
          Please see the help texts for details.

          Show
          ikedam ikedam added a comment - Use "Which for multiple upstream" in the advanced section. Please see the help texts for details.
          Hide
          plou Ploutarchos Spyridonos added a comment -

          Thanks a lot ikedam, I missed that option

          Show
          plou Ploutarchos Spyridonos added a comment - Thanks a lot ikedam , I missed that option

            People

            • Assignee:
              plou Ploutarchos Spyridonos
              Reporter:
              plou Ploutarchos Spyridonos
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: