ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [-1]]
I am facing an issue with Jenkins when I’m trying to connect Jenkins to mainframe via ssh publisher.
Switch user via ssh in same server using Jenkins pipeline
I’m unable to ssh to an ec2 server as ‘ubuntu’ user inside jenkins pipeline. After ssh login, the user remains as ‘jenkins’ instead of ‘ubuntu’ user.