I’m running Jenkins as a windows service. In one of my buid pipelines, I want to build an android app with gradle and copy it to a network drive.
I’ve written a C# script/console app to make some versioning and after that it should copy the apk to the network drive, but when it comes to the “File.Copy(..)” line I get an exception “Permission denied”.
The service is running as a AD user called “Jenkins” wich has admin rights and defenitely access to the network drives. When I call that script manually, logged in as “Jenkins” on that machine, it works fine, but when that program is called by Jenkins it seems to have no permission.
What I’ve tried:
The Jenkins service is running as Jenkins user, I’ve checked all permissions of the network folders and gave the Jenkins user explicitly access to that folders.
What is causing Jenkins to have no permission, although it runs as a user which has admin rights?
Thanks in advance