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

CopyArchiver deprecated - how do I use the Artifact deployer plugin?

      Hi,

      Previously I was using the https://wiki.jenkins-ci.org/display/JENKINS/CopyArchiver+Plugin but I have noticed that this has been deprecated and replaced with https://wiki.jenkins-ci.org/display/JENKINS/ArtifactDeployer+Plugin.

      In the config.xml from my project I used to have:

      <com.thalesgroup.hudson.plugins.copyarchiver.CopyArchiverPublisher>
            <sharedDirectoryPath>${JENKINS_HOME}\jobs\External_Bullet\builds\${BUILD_ID}</sharedDirectoryPath>
            <flatten>false</flatten>
            <deleteShared>false</deleteShared>
            <archivedJobList>
              <com.thalesgroup.hudson.plugins.copyarchiver.ArchivedJobEntry>
                <jobName>External_Bullet</jobName>
                <pattern>tfields/Live/GameEngine/Lib/**/*.lib, tfields/Live/GameEngine/Lib/**/*.pdb, tfields/Live/GameEngine/Lib/**/*.a</pattern>
                <excludes></excludes>
              </com.thalesgroup.hudson.plugins.copyarchiver.ArchivedJobEntry>
            </archivedJobList>
          </com.thalesgroup.hudson.plugins.copyarchiver.CopyArchiverPublisher>
      

      How do I do the same with the new Artifact deployer plugin? For starters, I don't see any option to specify the shared directory.

      Thanks in advance.

      Tom.

          [JENKINS-10360] CopyArchiver deprecated - how do I use the Artifact deployer plugin?

          Thomas Fields added a comment -

          I've found a copy of the deprecated CopyArchiver plugin so I'll use that until the ArtifactDeployer plugin support matrix projects.

          Regards,
          Tom.

          Thomas Fields added a comment - I've found a copy of the deprecated CopyArchiver plugin so I'll use that until the ArtifactDeployer plugin support matrix projects. Regards, Tom.

          Thomas Fields added a comment -

          Hi gbois,

          Did you update the Artifact deployer plugin to support Matrix projects?

          Thanks,
          Tom.

          Thomas Fields added a comment - Hi gbois, Did you update the Artifact deployer plugin to support Matrix projects? Thanks, Tom.

          It would be very useful to have this information on the wiki page:

          "For using the ArtifactDeployer, you have to check 'Deploy artifacts from workspace to remote directories' in the 'Post Actions' of the configuration page."

          Also a screenshot of the user interface, similar to what CopyArchiver plugin has, would be most welcome.

          Dennis Lundberg added a comment - It would be very useful to have this information on the wiki page: "For using the ArtifactDeployer, you have to check 'Deploy artifacts from workspace to remote directories' in the 'Post Actions' of the configuration page." Also a screenshot of the user interface, similar to what CopyArchiver plugin has, would be most welcome.

          It seems that the ArtifactDeployer plugin does not work for Maven builds either. Is that correct?

          If that is the case then we can't really deprecate the CopyArchiver at this time, since there is no replacement.

          Dennis Lundberg added a comment - It seems that the ArtifactDeployer plugin does not work for Maven builds either. Is that correct? If that is the case then we can't really deprecate the CopyArchiver at this time, since there is no replacement.

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          pom.xml
          src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher.java
          http://jenkins-ci.org/commit/artifactdeployer-plugin/802f7a46926208aa33f6cdc6204340d4a7874463
          Log:
          Refactoring + Fixed partially JENKINS-10360 - Added support of maven project

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: pom.xml src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher.java http://jenkins-ci.org/commit/artifactdeployer-plugin/802f7a46926208aa33f6cdc6204340d4a7874463 Log: Refactoring + Fixed partially JENKINS-10360 - Added support of maven project

          Thomas Fields added a comment -

          Hi gbois,

          What do you mean by partial fix? What's still missing?

          Thanks,
          Tom.

          Thomas Fields added a comment - Hi gbois, What do you mean by partial fix? What's still missing? Thanks, Tom.

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher.java
          http://jenkins-ci.org/commit/artifactdeployer-plugin/95178ca3e624d345e7f4c0a3d48f953c68d1f28e
          Log:
          Fixed other JENKINS-10360 - Added matrix compatibility

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher.java http://jenkins-ci.org/commit/artifactdeployer-plugin/95178ca3e624d345e7f4c0a3d48f953c68d1f28e Log: Fixed other JENKINS-10360 - Added matrix compatibility

          Fix available in 0.10

          Gregory Boissinot added a comment - Fix available in 0.10

          Not sure if i am doing it right but its not working for remote deployment for me. Below are my repository configs-
          local repository - /home/usr/workspace/build/
          remote repository - //someserver/home/usr/build

          the build is going inside tomcat bin folder for some reason. Also i want to know if my remote server has some other credentials how can i pass them in url?

          Note - it is working find if i give some local location in remote repository

          jitesh shivnani added a comment - Not sure if i am doing it right but its not working for remote deployment for me. Below are my repository configs- local repository - /home/usr/workspace/build/ remote repository - //someserver/home/usr/build the build is going inside tomcat bin folder for some reason. Also i want to know if my remote server has some other credentials how can i pass them in url? Note - it is working find if i give some local location in remote repository

          Please make a new issue, It is more easier to answer you and to keep track of it.

          Gregory Boissinot added a comment - Please make a new issue, It is more easier to answer you and to keep track of it.

            gbois Gregory Boissinot
            tfields Thomas Fields
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: