I'm using the ArtifactDeployer plugin to deploy the build job artifacts to a remote location (Windows share SMB). However Jenkins never manages to succeed. Throwing errors like:
[ArtifactDeployer] - Starting deployment from the post-action ... [ArtifactDeployer] - [ERROR] - Failed to deploy. Can't create the directory ... Build step [ArtifactDeployer] - Deploy artifacts from workspace to remote directories' changed build result to FAILURE
Local deployment works fine.
The Jenkins machine OS is Windows 7 32-bit Prof. Jenkins is running as a service using a local system account.
I tried using another account, my user account but the service failed to start (Windows error 1069: the service did not start due to a logon failure). The network service account did run but than Jenkins throws errors it can't access the .NET framework.
When manually trying the remote copy, this works fine. I can create directories and write to it. On the same machine of course.
I tried two different remote reference in Jenkins: 1) \\targetdirectory 2) I:\ - by mapping a drive letter to the remote dir in windows No success...
Any tips or suggestions? Thanks!
Update 15/02/2012: Still no solution or workaround for this issue. It's not only the plugin, I hit also this issue using "Execute Windows batch command". I found a bug report that I want to share.
Solution
I found a solution. You have to grant access persmission to the computer in a domain instead of the user of that machine. Seems very logic if you look back to it.
A 2nd solution is to run the service using a domain user account. Above I made a mistake by using the local user .\user
in stead of DOMAIN\user
.