Console Output
SSH: Connecting from host [localhost.localdomain]
SSH: Connecting with configuration [jenkins] …
SSH: EXEC: completed after 608 ms SSH: Disconnecting configuration [jenkins] …
ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [23]] Build step ‘Send files or execute commands over SSH’ changed build result to UNSTABLE Finished: UNSTABLE
Need help on this, please!
~Wasim
halkeye
(Gavin Mogan)
July 2, 2022, 6:32am
2
Hi there,
“it doesn’t work” is always hard to remote debug. Try to always include these 3 things.
what did you try? (Code samples, command lines, screenshots, videos, etc)
what did happen? (Error messages, description, outputs, stuff)
what did you expect to happen?
Otherwise, it’s hard for us to get into your context and you’ll have to have someone who is exactly knowledgeable come along.
Hello Halkeye,
I deployed 3 VMs using VMware fusion.
Jenkins VM
Ansible VM
Webserver VM
I made sure all 3 are interconnected with ssh-keygen.
I have set up a GitHub account and created a repository and created an index.html file. This repository webhook is setup and connected with Jenkins.
I have confiured Junekins credentials and connected it with Gthub.
I have configured ‘Publish over ssh’ plugin on my Jenkins account.
I have configured my Jenkins with rsync command and added both my jenkins and asnsible machine details.
When i run the build or add something new to git i expect it to complete the job with no error, but i am getting this error!
sakir2141
(Sakir2141)
April 20, 2023, 10:36am
4
I am also fetching this error…
halkeye
(Gavin Mogan)
April 20, 2023, 5:55pm
5
googling for “ssh error code 23” gives me that its something rsync returns
Probably something about permissions?
Does any of that sound relevant?