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

"Copy Artifacts Plugin" should support ArtifactManager

    XMLWordPrintable

Details

    Description

      ArtifactManager introduced in Jenkins 1.532 allows copyartifact
      to work with other plugins, such as Compress Artifacts Plugin


      When using the Compress Artifacts Plugin, the Copy Artifact Plugin cannot find the zip archive created and fails when trying to copy the previous job's artifacts.

      The error is:

      Unable to access upstream artifacts area C:\JenkinsData\<job_name>\builds\2014-04-15_17-02-29\archive. Does source project archive artifacts?

      The archive file is (no archive folder):
      C:\JenkinsData\<job_name>\builds\2014-04-15_17-02-29\archive.zip

      Attachments

        Issue Links

          Activity

            jglick Jesse Glick added a comment -

            Not a problem with Compress Artifacts per se. Rather, hudson.plugins.copyartifact.BuildSelector would need to be modified to work with ArtifactManager, present in Jenkins 1.532 and later, rather than calling Run.getArtifactsDir (which is now deprecated). In turn, the BuildSelector and Copier APIs would need to change to work with VirtualFile.

            jglick Jesse Glick added a comment - Not a problem with Compress Artifacts per se. Rather, hudson.plugins.copyartifact.BuildSelector would need to be modified to work with ArtifactManager , present in Jenkins 1.532 and later, rather than calling Run.getArtifactsDir (which is now deprecated). In turn, the BuildSelector and Copier APIs would need to change to work with VirtualFile .
            ikedam ikedam added a comment -

            JENKINS-17494 can be also resolved by:

            • Copyartifact supports ArtifactManager
            • ArtifactDeploer provides ArtifactManager
            ikedam ikedam added a comment - JENKINS-17494 can be also resolved by: Copyartifact supports ArtifactManager ArtifactDeploer provides ArtifactManager

            Any progress on this - IMHO long outstanding - issue?

            ibiatiroler Markus Eisenmann added a comment - Any progress on this - IMHO long outstanding - issue?
            csanchez Carlos Sanchez added a comment - In review at https://github.com/jenkinsci/copyartifact-plugin/pull/100

            Code changed in jenkins
            User: Jesse Glick
            Path:
            pom.xml
            src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
            src/main/java/hudson/plugins/copyartifact/ParametersBuildFilter.java
            src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
            http://jenkins-ci.org/commit/copyartifact-plugin/e617d816465d0a85e67e784b0a92c2b36bc9acff
            Log:
            JENKINS-22637 JENKINS-26810 Handle file modes.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/java/hudson/plugins/copyartifact/CopyArtifact.java src/main/java/hudson/plugins/copyartifact/ParametersBuildFilter.java src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java http://jenkins-ci.org/commit/copyartifact-plugin/e617d816465d0a85e67e784b0a92c2b36bc9acff Log: JENKINS-22637 JENKINS-26810 Handle file modes.

            Code changed in jenkins
            User: ikedam
            Path:
            .gitignore
            .mvn/extensions.xml
            .mvn/maven.config
            pom.xml
            src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
            src/main/java/hudson/plugins/copyartifact/ParametersBuildFilter.java
            src/main/resources/hudson/plugins/copyartifact/Messages.properties
            src/test/java/hudson/plugins/copyartifact/BuildSelectorParameterTest.java
            src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
            http://jenkins-ci.org/commit/copyartifact-plugin/180c673ac8e3cab7b093ca583bfebdca7eaeda06
            Log:
            Merge pull request #100 from jglick/more-VirtualFile-JENKINS-49635

            JENKINS-22637 ArtifactManager support on new core

            Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/fc966a54330b...180c673ac8e3
            *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

            Functionality will be removed from GitHub.com on January 31st, 2019.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: .gitignore .mvn/extensions.xml .mvn/maven.config pom.xml src/main/java/hudson/plugins/copyartifact/CopyArtifact.java src/main/java/hudson/plugins/copyartifact/ParametersBuildFilter.java src/main/resources/hudson/plugins/copyartifact/Messages.properties src/test/java/hudson/plugins/copyartifact/BuildSelectorParameterTest.java src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java http://jenkins-ci.org/commit/copyartifact-plugin/180c673ac8e3cab7b093ca583bfebdca7eaeda06 Log: Merge pull request #100 from jglick/more-VirtualFile- JENKINS-49635 JENKINS-22637 ArtifactManager support on new core Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/fc966a54330b...180c673ac8e3 * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
            ikedam ikedam added a comment -

            Copyartifact-1.40 is released (thanks to jglick).

            Copyartifact-1.40 targets Jenkins 2.118, and there's no LTS version yet.
            You may want to use copyartifact-1.40-beta-1 instead till LTS is released.

            ikedam ikedam added a comment - Copyartifact-1.40 is released (thanks to jglick ). Copyartifact-1.40 targets Jenkins 2.118, and there's no LTS version yet. You may want to use copyartifact-1.40-beta-1 instead till LTS is released.

            People

              dstj Dominic St-Jacques
              dstj Dominic St-Jacques
              Votes:
              14 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: