Jenkins ArtifactDeployer plugin - How to specify a local directory as remote directory
I just figured it out. All you have to do is specify the directory location where you have to deploy your artifact to without the machine details. For example,
/usr/local/scm_repo/cbo/artifacts/
will actually deploy the artifact in the same machine. Also, use the "Flatten" check box option to not retain the source directory structure.
Anand
Updated on August 07, 2022Comments
-
Anand over 1 year
I am trying to use the ArtifactDeployer plugin to copy artifacts from the JENKINS_HOME/jobs/ directory into a directory on the same machine which isn't under JENKINS_HOME. I am not sure how to use the Remote Directory parameter to specify the directory on the local machine. Here is a screenshot of how I am trying to specify the local directory.
I get the following errors:
[ArtifactDeployer] - [ERROR] - Failed to deploy. Can't create the directory '\\localhost\usr\local\scm_repo\cbo\artifacts\' [ArtifactDeployer] - [ERROR] - Failed to mkdirs: \\localhost\usr\local\scm_repo\cbo\artifacts\
I couldn't find any documentatin on this too. Any help would be appreciated (even if that means I can use another plugin).