Hi everybody,
For many projects in nodeJS, we use to launch pipelines which make first a npm install, then a npm test and finally a docker build before to send the built package to GCP.
On my example, my app have a private dependency on a private repo on the same account.
We created a couple of ssh keys and added the public key on the dest repo so the npm install and the npm test work perfectly in the pipeline !
But when the pipeline try to lauch the buil (docker build), it starts correctly and the engine try to access to the external dependency (like the npm install...) and we got the error :
<span>npm</span> <span>ERR!</span><span> /usr/bin/git ls-remote -h -t ssh://git@bitbucket.org/*****/********<br></span><span>npm ERR! <br></span><span>npm</span><span> ERR! Host key verification failed.<br></span><span>npm ERR!</span><span> fatal: Could not read from remote repository.<br></span><span>npm ERR!</span> <br><span>npm ERR! Please make sure you have the correct access rights<br></span><span>npm ERR! and the repository exists.<br></span><span>npm </span><span>ERR! </span><span>npm</span><span> ERR!</span><span> exited with error code: 128</span><span>npm</span><span> ERR! Error while executing:<br></span>
- The repo exists
- We declare the key in the pipeline. before the error we can see that the id is correctly added : Identity added: /root/.ssh/id_rsa (*******)
This worked perfectly like this the last time we tried to build. But it seems that somethings changed...
We spent 1,5 day to try many different things but we always got the same error.
Please is there anybody who can help use ?
Many thanks,
David.