So....
I was wondering if anyone is able to assist me on this one?
Basically I have created a self-hosted docker container for use to use as a build agent (Azure DevOps)
Now I have started to test the agent, and I am having issues being able to publish artefacts to the destination due to the fact our drop folder is on a windows file share (domain joined)
Is anyone able to shed some light on how I can go about being able to access this file share to drop artefacts from the build and also to be able to download them for the release stage?
We use on-prem TFS Azure DevOps rather than Azure DevOps Services :(
TIA,
Update
In the end, I was able to resolve this issue.
What I did to resolve this issue was I created a gMSA account on the domain controller, then created a credspec file on the machine hosting the docker container, then finally I ran the container using the following command docker run --security-opt "credentialspec=file://<credspecfilename>.json" --hostname <hostname> -it <Image-name> PowerShell
Once the container was up and running I was able to confirm that the directories were available by running the following command dir <server>\\<share>
- Also I had to make sure that the newly created gMSA account had permissions to the share.
So I continued to join the container to the agent pool of our DevOps server and then I ran a test build. As expected I was able to pull/publish artefacts from our on-prem domain-joined server.
Again, thanks guys for assisting me on this issue.