I am attempting to download files from my companies.network fileshare to my Azure Pipelines $(System.ArtifactDirectory). We use Azure Devops Server 2020.
Naturally, I am using the Download Fileshare Artifacts Task.
When I enter my companies file share server path (which can also be accessed from any computer through the file explorer .network' button), //our.network.com/path/to/file, I get the "ENOENT: no such file or directory" error.
I know that my server path is correct. However, I am wondering if anybody is familiar with this task.
Am I missing a step to connecting my file server to ADOS? Can this be done programmatically? Is there some reason that my hosted ADOS build agents would not be able to find our file server?
I have done some research, and cannot find a solution. I appreciate any help.
The value of Fileshare path
should be the path of the folder where the artifact is in, instead of the path of the artifact.
For example, the path of the artifact on your fileshare server is ' \server\Artifacts\drop
'.
The drop
is the name of the artifact you set when publishing it, and the artifact files are in this folder.
On the Download Fileshare Artifacts Task, you should set the value of Fileshare path
field as ' \server\Artifacts
' which is same as that when you published the artifact. Not ' \server\Artifacts\drop
'.
And the value of Artifact name
should be drop
.
When running the task, it will combine Fileshare path
and Artifact name
as the complete correct path of the artifact (' \server\Artifacts\drop
').
For more details, you can see the document about " Download Fileshare Artifacts task ".
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.