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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          gbois Gregory Boissinot added a comment -

          There is no migration procedure from the CopyArchiver to the ArtifactDeployer plugin,
          For using the ArtifactDeployer, you have to check 'Deploy artifacts from workspace to remote directories' in the 'Post Actions' of the configuration page.

          Does it answer your question?

          Show
          gbois Gregory Boissinot added a comment - There is no migration procedure from the CopyArchiver to the ArtifactDeployer plugin, For using the ArtifactDeployer, you have to check 'Deploy artifacts from workspace to remote directories' in the 'Post Actions' of the configuration page. Does it answer your question?
          Hide
          tfields Thomas Fields added a comment -

          "Deploy artifacts from workspace to remote directories" - I don't see this option in my "Post-build Actions" section. I'm using version 0.7 of the plugin.

          Show
          tfields Thomas Fields added a comment - "Deploy artifacts from workspace to remote directories" - I don't see this option in my "Post-build Actions" section. I'm using version 0.7 of the plugin.
          Hide
          tfields Thomas Fields added a comment -

          Ah I do see the option on my free-style software project but not in my multi-configuration project.

          Show
          tfields Thomas Fields added a comment - Ah I do see the option on my free-style software project but not in my multi-configuration project.
          Hide
          tfields Thomas Fields added a comment -

          Does this new plugin support multi-configuration projects? If not then we should reinstate the CopyArchiver plugin.

          Show
          tfields Thomas Fields added a comment - Does this new plugin support multi-configuration projects? If not then we should reinstate the CopyArchiver plugin.
          Hide
          gbois Gregory Boissinot added a comment -

          ArtifactDeployer doesn't support yet MatrixProject (Multi configuration).
          Soon available.

          Show
          gbois Gregory Boissinot added a comment - ArtifactDeployer doesn't support yet MatrixProject (Multi configuration). Soon available.
          Hide
          tfields Thomas Fields added a comment -

          Thanks for your reply. Without meaning to sound rude...when is soon?

          Show
          tfields Thomas Fields added a comment - Thanks for your reply. Without meaning to sound rude...when is soon?
          Hide
          tfields Thomas Fields added a comment -

          Has any progress been made on supporting Matrix projects?

          Show
          tfields Thomas Fields added a comment - Has any progress been made on supporting Matrix projects?
          Hide
          gbois Gregory Boissinot added a comment -

          I have to finish other developments before fixing this issue.
          If I need to give a dateline, I'll say by the end of August.

          Show
          gbois Gregory Boissinot added a comment - I have to finish other developments before fixing this issue. If I need to give a dateline, I'll say by the end of August.
          Hide
          tfields Thomas Fields added a comment - - edited

          That would be great timing. Thanks.

          EDIT: There was me thinking it was August!

          I'll have to use the CopyArchiver plugin instead as that is a little too late for me. Where would I get a copy?

          Show
          tfields Thomas Fields added a comment - - edited That would be great timing. Thanks. EDIT: There was me thinking it was August! I'll have to use the CopyArchiver plugin instead as that is a little too late for me. Where would I get a copy?
          Hide
          tfields 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.

          Show
          tfields 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.
          Hide
          tfields Thomas Fields added a comment -

          Hi gbois,

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

          Thanks,
          Tom.

          Show
          tfields Thomas Fields added a comment - Hi gbois, Did you update the Artifact deployer plugin to support Matrix projects? Thanks, Tom.
          Hide
          dennisl 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.

          Show
          dennisl 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.
          Hide
          dennisl 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.

          Show
          dennisl 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.
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          tfields Thomas Fields added a comment -

          Hi gbois,

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

          Thanks,
          Tom.

          Show
          tfields Thomas Fields added a comment - Hi gbois, What do you mean by partial fix? What's still missing? Thanks, Tom.
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          gbois Gregory Boissinot added a comment -

          Fix available in 0.10

          Show
          gbois Gregory Boissinot added a comment - Fix available in 0.10
          Hide
          jitesh 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

          Show
          jitesh 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
          Hide
          gbois Gregory Boissinot added a comment -

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

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: