skip to Main Content

We are trying to setup CI/CD for a winform app developed using DotNet core 6. We have setup the build pipeline and it’s producing the correct set of artifacts but the problem is we are unable to publish these artifacts to network file share drive (DFS server). While connecting to network file share we are getting error Incorrect username or password. Do we need a service account which would connect to network file share ? If there is a service account needed we don’t see any option in release pipeline under which task in Azure Devops we need to pass username and password as the Publish artifact task allow us to define the network location without using any credentials. Can anyone please suggest.

2

Answers


  1. Do we need a service account which would connect to network file share
    ?

    Seems like you asked here too. For a self-hosted agent, yes, we need a service account that can connect to the network file share.

    Basically, you can try to setup the agent with the account which has the correct permission (write permission) to access the network share. (specify the account as the agent service account).

    Alternately, you can use Windows Machine File Copy task to copy the artifacts to the network share. In the task you can specify the username and password to access the network share.

    enter image description here

    Login or Signup to reply.
  2. Can be accomplish through service principal/agent that has write permission to the drive. You can then create scripts in the build pipeline to transfer the file to the Azure storage account blob container.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search