I'm a new user of Jenkins. I'm trying to run a shell script as part of the build step in Jenkins. This script has a scp command which transfers a .tar file to a remote server.
When I run this script, it works fine and gives the desired output, but when it is executed through Jenkins I get an error:
"Host key verification failed.
Up until the scp command, the script executes successfully, then skips the scp step.
I can't even SSH or SCP through Jenkins to the remote server.
Please advise what can be done here? What are the required plugins to be installed for ssh and scp?