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

Copy artifact - does not copy file of current build

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      copy artifact doent cop war file from on going build or current build in pipeline.

      example If a build (say build no 4)is initiated via pipeline , then there is no way it can copy cwar created in build 4. it shall copy either last stable build war or last build war 

        Attachments

          Activity

          Hide
          kasperhey Kasper Heyndrickx added a comment -

          You can copy a specific build number using the specific selector:

          copyArtifacts(projectName: 'downstream', selector: specific("4"));

           

          Show
          kasperhey Kasper Heyndrickx added a comment - You can copy a specific build number using the specific selector: copyArtifacts(projectName: 'downstream', selector: specific("4"));  
          Hide
          krati009 Krati added a comment - - edited

          i want to automate my pipeline . In the above mention script , i will have to change the build number every time . It's not an optimum solution.

          My Agenda is : every time the build occurs , artifacts from the same build should be copied and deployed

          Show
          krati009 Krati added a comment - - edited i want to automate my pipeline . In the above mention script , i will have to change the build number every time . It's not an optimum solution. My Agenda is : every time the build occurs , artifacts from the same build should be copied and deployed
          Hide
          ikedam ikedam added a comment -

          Describe details about how you called copyArtifact.
          You said "last stable", but "last stable" implies "completed".

          Show
          ikedam ikedam added a comment - Describe details about how you called copyArtifact. You said "last stable", but "last stable" implies "completed".

            People

            Assignee:
            krati009 Krati
            Reporter:
            krati009 Krati
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: