ERROR: Exception when publishing, exception message [Permission denied]

The following error occurs when running deployment in Jenkins.
ERROR: Exception when publishing, exception message [Permission denied.]

What should I do with this?

The OS is Windows 2012 R2 version and was distributed through SSH.
That error pops up at the end and ends abnormally.

The folder in the distribution path has the folder permissions of the login account used by Jenkins as wrx.

We’ll probably need more information about what you are trying to do. What plugin are you using? Are you using pipeline? What does your Jenkinsfile look like? Permission denied means whatever operation you are doing is not allowed. Are you sure the account that Jenkins is running as has access to the directory? Is the directory a mapped drive somewhere?