- curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee \ /usr/share/keyrings/jenkins-keyring.asc > /dev/null
- echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ https://pkg.jenkins.io/debian-stable binary/ | sudo tee \ /etc/apt/sources.list.d/jenkins.list > /dev/null
- sudo apt-get update
- sudo apt-get install jenkins
After installing jenkins change the port tag by using edit option….and change it to 8080
Link
To open dashboard :(external_IP of instance)/port
eg=>http://35.193.3.249:8080/- Create a new pipeline
- Add github repo url
- Select GitHub hook trigger for GITScm polling
- Select GIT SCM option ,add url and add the branch
- Add the Jenkinsfile path