title: How to pass password in Jenkins shell script in safe manner?
body: <p>I have below shell script in my jenkins job which execute after successful build. </p>
  
  <p><em>sshpass -p 'mypassword' ssh -o StrictHostKeyChecking=no  myusername@myhostname "cd /opt/temp/test/ &amp;&amp; ./stop-services.sh"</em></p>
  
  <p>This script is useful to goto specifc directory in target server and run .sh file . This is working fine. My only problem is that the password is visible in jenkins logs (console output) after every build.</p>
  
  <p>Can anyone help me if there is any other way to avoid this password visibility in logs or any-other way to pass it to the script. </p>
  
  <p>Thanks &amp; Regards,
  Somi J. </p>