title: Jenkins Bitbucket with PuTTY cache
body: <p>In Jenkins, in the console output, it shows the message</p>
  
  <pre><code>The server's host key is not cached in the registry....
  If you trust this host, enter 'y' to add the key to the PuTTY's cache and carry on connecting
  </code></pre>
  
  <p>The problem is I cannot enter yes or no on the console output. So after some research, it said to enter in the script something like</p>
  
  <pre><code>echo y | script name
  </code></pre>
  
  <p>When I tried that, the message still shows and hangs on it. After aborting the job, then it echos' yes. Is there another way enter y when the putty cache message is displayed. </p>