Re: Could not push to git from shell in Jenkins job

2017-03-29 Thread Alexey Lukin
The solution is to create id_rsa file manually in shell like this: cat </root/.ssh/id_rsa-BEGIN RSA PRIVATE KEY- content of the file-END RSA PRIVATE KEY- EOF chmod 400 ~/.ssh/id_rsa среда, 29 марта 2017 г., 11:22:21 UTC+3 пользователь Alexey Lukin написал: > > I ne

Could not push to git from shell in Jenkins job

2017-03-29 Thread Alexey Lukin
nd I could not figure out how to setup correctly git in shell to make it working, the error is: + git push origin HEAD Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Build step 'Execute