A.Agarwal
A.Agarwal

Reputation: 1

VSTS Error copying files to local drive

I have a requirement to publish a .net desktop application to an on-prem machine which I have now installed VSTS agent on successfully registered. The VSTS release can see the machine OK and it works until downloading the artifact.

I have below settings for Copy files in the Release Definition:-

Copy Files Configuration

the settings for Publish Artifact task is :-

Publish Artifact Settings

I want to copy the build output to a local folder on the designated machine. When release process starts, the artifact is copied to the local machine under vsts work folder OK, however, when the Copy Files process start, it fails with error can't find the folder.

enter image description here

while this folder is available there on C: drive.

Any help is much appreciated. thanks

enter image description here

Upvotes: 0

Views: 246

Answers (1)

Daniel Mann
Daniel Mann

Reputation: 59036

Publish Artifacts is the wrong task to use for this. That's intended to be used in your build process.

Just use Copy Files.

Upvotes: 1

Related Questions