Our jenkins deploy process checks out our git repo into the workspace and then copies the files from the workspace into our staging environment, using the publish over SSH plugin.
2 Days ago we had a commit and automatic deploy at 10:34 AM and at 02:13 PM. The AM commit deployed fine, since the PM commit, the publishing job reports this:
BUILD SUCCESSFUL Total time: 15 seconds SSH: Connecting from host [...] SSH: Connecting with configuration [...] ... SSH: Disconnecting configuration [...] ... ERROR: Exception when publishing, exception message [Permission denied] Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
The entire staging environment has been recursively set to chmod 777 and chown'd to the user and group that is used by the deploy over ssh configuration (temporarily, to make sure we are not running into file permission issues)
Still the task reports permission denied.
The configuration for the deploy over ssh task has no changed in the last 2 months. Same keys, same user, same passwords, etc.
Sadly the error message does not contain any helpful details.
Another job that deploys a different project into the same webserver only in a different webroot works just fine.
Server is running FreeBSD and is stationed at a hoster.
Before we contact them, we want to make sure we have checked everything on our side.