Integration of Jenkins with GitHub using git Web hook

Jul 5 · 4 min read
Image source:
sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine
sudo yum install -y yum-utils \ device-mapper-persistent-data \ lvm2
sudo yum-config-manager \ — add-repo \
sudo yum install docker-ce docker-ce-cli containerd.icker-ce docker-ce-cli
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $(whoami)
docker run hello-world
 docker container exec -u 0 -it <container_name> bash
mv ./jenkins.war /usr/share/jenkins
chown jenkins:jenkins /usr/share/jenkins/jenkins.war

· Challenge: Exposing the local instance of Jenkins to internet using ngrok.

./ngrok authtoken <AUTH_KEY>
./ngrok http 8080 > /dev/null &

· Challenge: Configuring the Jenkins url in the git hub.

· Challenge: Configuring github repo details in jenkins.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade