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

Copy artifact - does not copy file of current build

      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 

          [JENKINS-65632] Copy artifact - does not copy file of current build

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

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

           

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

          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

          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

          ikedam added a comment -

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

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

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

              Created:
              Updated:
              Resolved: