Built a Jenkins Declarative Pipeline, and it is always stuck at Stage-2 as shown below in screenshot. Command I am using at this stage is -
stage('Restore Application') {
steps {
echo 'Restoring Application'
sshCommand remote: kocserver, command: "/Home/admin/restore_script.ksh"
}
}
One point - the called script does not return prompt - It could be one of the reason, If anyone knows How to avoid this ?