Publishing Artifacts: Failed to Upload Artifacts

I am trying to get a build configuration to publish artifacts to be used in another build configuraion.
The problem is I keep getting an IOException when publish happens.

My current artifact paths are:
%teamcity.build.checkoutDir%/Source/Common.Infrastructure/bin/**/*.dll => %teamcity.build.checkoutDir%/Artifacts/bin

The build log is showing:

[11:07:01]Publishing artifacts
[11:07:01][Publishing artifacts] Collecting files to publish: [C:\BuildAgent3\work\e51f6e7520843b52/Source/Common.Infrastructure/bin/**/*.dll => C:\BuildAgent3\work\e51f6e7520843b52/Artifacts/bin]
[11:07:01][Publishing artifacts] Sending Source/Common.Infrastructure/bin/**/*.dll
[11:07:01][Publishing artifacts] Failed to publish artifacts. Failed to upload artifact, due to error: java.io.IOException: Failed to create directory: "C:\ProgramData\JetBrains\TeamCity\system\artifacts\Common\Master Check In Build\336\C:\BuildAgent3\work\e51f6e7520843b52\Artifacts\bin\Release"
[11:07:01][Publishing artifacts] [Artifacts publishing failed] {build.status.text}
[11:07:01]Build finished


Notice that the artifact is trying to create the C:\ProgramData folder. Should it not be creating the %teamcity.build.checkoutDir%/Artifacts/bin folder instead?
I have given write permissions to the user that TC runs under full control to the C:\ProgramData folder and still nothing.


What I want to do is have all the *.dlls placed in the Artifact/bin folder.


Thanks,
Joe
2 comments
Comment actions Permalink

Think I finally got this working.
I changed my Artifact Paths to:

Source/Common.*/bin/**/*.dll => Artifacts
Source/Common.*/*.nuspec => Artifacts

0
Comment actions Permalink

Joe, please note that destination directory layout is relative to TeamCity internal artifact storage. There is no point in using absolute destinations for artifacts.

0

Please sign in to leave a comment.