Integrate Git with jenkins GUi and Pull code from GitHub

 Go to the mobaXterm command prompt, Now

Enter the command "yum install git" and press enter


Then enter the git --version command for the check git version. Here my version is 2.39.1 which I highlighted.

Now, go back into the  Jenkins Gui

Now click on first
left sidebar highlighted link, then click on the right side highlighted link to install plugins


Now, Click on Available Plugins, then search into github.


Now you can see this plugin
..


select GitHub and Click on Install without restart button.

let's complete the installation of all recommendation plugins, Then click go back tot he tope page link



Now click on the left corner, New project Link and enter the project name click on free style, and then click on to the Ok button.

Now in the next step, you can see Git option in Gui.


Now select this Git option and enter your application Url from the GitHub Repository.

i will give you here my sample repository link, which you can use it :: https://github.com/parekhankit3/hello-world.git




click apply and save it now.

Next, click again build now option and then green tick mark you can see below screen now.


Now copy the path from this screen 3rd line of workspace and paste into mobaxterm with " ls " or " ll " command.



Here you can see all same files which I have in my GitHub repository.
that means you did the right steps.




Thank you for following this page... share it and help people who want to learn from beginner level


Comments

Popular posts from this blog

Error Solving : -bash: /usr/local/bin/kubectl: cannot execute binary file : after Kubernetes installation: you're trying to run the kubectl command on an EC2 instance in AWS

Nodejs Application project : using Aws, Jenkins, Docker, Kubernetes

Create two public subnets and two private subnets in two different availability zones(AZ) ( one public and one private subnet in each AZ).Create an instance of webserver (like apache ) in each AZ and an instance of db server in any AZ. Attach web servers to ELB and make sure to support cross zone availability.