At this stage, the setup and configuration part is over and we are ready to create our first CI job:
Log in to your Jenkins application and click on New Item in the left navigation bar. Then, choose a name for the job, select Build a free-style software project, and press OK:
Under the Source Code Management section, choose Git and add the
mava
project repository here (Themava
project is located at[email protected]:Soolan/mava.git
; you are welcome to fork this project to your local repository or create a new repository and push your own Symfony project here.):As you can see, because of the lack of credentials, an error message is shown. To fix the problem, we need to add the Jenkins credentials to our mava GitHub repository. In the EC2 instance terminal, log in as Jenkins:
$ sudo su – jenkins
Now, generate public/private key pairs:
$ ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/var/lib/jenkins/.ssh/id_dsa): Enter...