I'm running an ansible playbook with jenkins using the Publish Over SSH Plugin. The jenkins jobs pulls the source code down from a bitbucket repository, transfers the files over to the remote server and runs the playbook.
Some of the tasks in the playbook will fail, which is fine as the playbook catches these fails and runs other commands because of this. But the job is failing because of this. Error is below
SSH: EXEC: completed after 403,590 ms
SSH: Disconnecting configuration [server] ...
ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [2]]
Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
Finished: UNSTABLE
Can't find anything on this error, would anyone have any experience with it?