I am trying to integrate jenkins running on EC2 with my code commit repository.
EC2 instance has ubuntu 14.04 running. I installed aws cli, then jenkins, I configured aws with IAM user key and secret having access to codecommit repository I want to build.
I foolowed this blog - http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-without-cli.html
but these commands are not working giving permission denied to .gitconfig
sudo -u jenkins git config --global credential.helper '!aws codecommit credential-helper $@'
I saw a similar question Access AWS CodeCommit from Jenkins running on EC2 (Ubuntu) but following that questions answer is also not working.
Jenkins is not able to clone my repository, giving this error
stderr: Host key verification failed.
fatal: Could not read from remote repository.
I have been after this for a week now and I need to create a Continous Integration server for my MEAN application.
All I want to do is when there is a commit on master branch of repository
- EC2 server pulls the repository.
- Runs the grunt file
- Runs the script to upload to S3 the web application.
- Makes Pm2 to restart nodejs application.
Any other method full-proof and tested to create continuous integration for development server would be also appreciated.(A Lot!!)