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

copy artifacts directly from workspace

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It would be nice to be able to copy artifacts from another job's workspace instead of archived artifacts only.
      This could be achieved by adding a selection "workspace" to the combo box "which build".

      Why? Imagine this situation:

      • Job A builds a Java project
      • Job B builds large data (some GB)
      • Job C copies artifacts from A and B and creates the completed build

      Now, archiving some GB of artifacts in B takes a lot of time. Maybe you only need the workspace, for Job C anyway copies B's results and archives the artifacts of the whole build again.

      So, if C could copy B's workspace, we could save the time for archiving artifacts in B.

      An alternative would be the plugin "Clone workspace SCM", but this prevents the use of a real SCM in the same job and is less convenient in some cases.

        Attachments

          Activity

          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/java/hudson/plugins/copyartifact/WorkspaceSelector.java
          trunk/hudson/plugins/copyartifact/src/main/resources/hudson/plugins/copyartifact/Messages.properties
          trunk/hudson/plugins/copyartifact/src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
          http://jenkins-ci.org/commit/35721
          Log:
          [FIXED JENKINS-7130] add special BuildSelector that copies from workspace
          of the latest completed build (not from artifacts)

          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/java/hudson/plugins/copyartifact/WorkspaceSelector.java trunk/hudson/plugins/copyartifact/src/main/resources/hudson/plugins/copyartifact/Messages.properties trunk/hudson/plugins/copyartifact/src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java http://jenkins-ci.org/commit/35721 Log: [FIXED JENKINS-7130] add special BuildSelector that copies from workspace of the latest completed build (not from artifacts)
          Hide
          harrygg Harry G. added a comment -

          Great, thanks for the quick resolution!

          Show
          harrygg Harry G. added a comment - Great, thanks for the quick resolution!
          Hide
          aeldemerdash Abdallah Eldemerdash added a comment - - edited

          Dear L&G,

          Can we also have the option that copies from (workspace
          of a "specified build number" instead of "the latest completed build")?

          It will be very useful as we need it in some projects which we do some changes in some build jobs and want to have them instead of those of the latest successful builds.

          Thanks,

          Abdallah

          Show
          aeldemerdash Abdallah Eldemerdash added a comment - - edited Dear L&G, Can we also have the option that copies from (workspace of a "specified build number" instead of "the latest completed build")? It will be very useful as we need it in some projects which we do some changes in some build jobs and want to have them instead of those of the latest successful builds. Thanks, Abdallah
          Hide
          harrygg Harry G. added a comment -

          Hi Abdallah,

          please leave old jobs that are long done closed.
          If you have a new requirements, please open a new job.

          In your case: what you want is already there, copyartifact-plugin can copy artifacts from a specific build number.
          But the workspace of a specific build number does not exist. The workspace is something per job, not per build.

          Harald

          Show
          harrygg Harry G. added a comment - Hi Abdallah, please leave old jobs that are long done closed. If you have a new requirements, please open a new job. In your case: what you want is already there, copyartifact-plugin can copy artifacts from a specific build number. But the workspace of a specific build number does not exist. The workspace is something per job, not per build. Harald
          Hide
          aeldemerdash Abdallah Eldemerdash added a comment -

          Thanks a lot Harry and sorry for opening an old closed job.

          Best Regards,

          Abdallah

          Show
          aeldemerdash Abdallah Eldemerdash added a comment - Thanks a lot Harry and sorry for opening an old closed job. Best Regards, Abdallah
          Hide
          aeldemerdash Abdallah Eldemerdash added a comment -

          Sorry Harald not Harry

          Show
          aeldemerdash Abdallah Eldemerdash added a comment - Sorry Harald not Harry
          Hide
          aeldemerdash Abdallah Eldemerdash added a comment -

          Hi Harry,

          I submitted a new issue 2 weeks ago but it is not even reassigned to anybody (JENKINS-26628). Please advise.

          Thanks,

          Abdallah Eldemerdash

          Show
          aeldemerdash Abdallah Eldemerdash added a comment - Hi Harry, I submitted a new issue 2 weeks ago but it is not even reassigned to anybody ( JENKINS-26628 ). Please advise. Thanks, Abdallah Eldemerdash

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              harrygg Harry G.
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: