Unable to rename input.apk

Hi my Automation Script runs fine when I keep the .apk file in Admin users folder on my MAC, but I get error
Unable to rename input.apk, when i keep the .apk file in Shared User folder.

I am Using Release build of the apk

Has anyone faced this issue ?? let me know of any possible solution.

I cannot change the directory since my Jenkins Server uses Shared folder for project Workspace.

It’s probably a permissions issue. Can the Jenkins user write to the Shared directory?

Yes the jenkins user can write to the Shared folder.

You’ll have to post the log.

Issue got resolved, I rechecked and it was a permissions issue. Thanks for Help.