{"id":15083554,"url":"https://github.com/safwanuddinmairaj/jenkins-learn","last_synced_at":"2026-02-12T05:32:55.381Z","repository":{"id":253462022,"uuid":"843554402","full_name":"SafwanUddinMairaj/Jenkins-Learn","owner":"SafwanUddinMairaj","description":"A collection of simple Jenkins pipelines and configurations for hands-on learning and practicing Continuous Integration (CI) concepts.","archived":false,"fork":false,"pushed_at":"2024-08-17T10:34:56.000Z","size":365,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T15:06:33.407Z","etag":null,"topics":["aws","devops","docker","jenkins"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SafwanUddinMairaj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-16T19:18:31.000Z","updated_at":"2024-08-17T10:34:59.000Z","dependencies_parsed_at":"2024-10-13T07:40:47.575Z","dependency_job_id":"6c00a238-6575-4fc2-8f40-336513afe6dd","html_url":"https://github.com/SafwanUddinMairaj/Jenkins-Learn","commit_stats":{"total_commits":10,"total_committers":3,"mean_commits":"3.3333333333333335","dds":0.5,"last_synced_commit":"1a456b5e9af0572b0352228e9ab61c325d061355"},"previous_names":["safwanuddinmairaj/jenkins-learn"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SafwanUddinMairaj/Jenkins-Learn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafwanUddinMairaj%2FJenkins-Learn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafwanUddinMairaj%2FJenkins-Learn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafwanUddinMairaj%2FJenkins-Learn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafwanUddinMairaj%2FJenkins-Learn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SafwanUddinMairaj","download_url":"https://codeload.github.com/SafwanUddinMairaj/Jenkins-Learn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafwanUddinMairaj%2FJenkins-Learn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273271947,"owners_count":25075971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","devops","docker","jenkins"],"created_at":"2024-09-25T06:02:08.155Z","updated_at":"2026-02-12T05:32:55.342Z","avatar_url":"https://github.com/SafwanUddinMairaj.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jenkins\n\n## AWS EC2 Instance\n\n- Go to AWS Console\n- Instances(running)\n- Launch instances\n\n\n\n\n### Install Jenkins.\n\nPre-Requisites:\n - Java (JDK)\n\n### Run the below commands to install Java and Jenkins\n\nInstall Java\n\n```\nsudo apt update\nsudo apt install openjdk-11-jre\n```\n\nVerify Java is Installed\n\n```\njava -version\n```\n\nNow, you can proceed with installing Jenkins\n\n```\ncurl -fsSL https://pkg.jenkins.io/debian/jenkins.io-2023.key | sudo tee \\\n  /usr/share/keyrings/jenkins-keyring.asc \u003e /dev/null\necho deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \\\n  https://pkg.jenkins.io/debian binary/ | sudo tee \\\n  /etc/apt/sources.list.d/jenkins.list \u003e /dev/null\nsudo apt-get update\nsudo apt-get install jenkins\n```\n\n**Note: ** By default, Jenkins will not be accessible to the external world due to the inbound traffic restriction by AWS. Open port 8080 in the inbound traffic rules as show below.\n\n- EC2 \u003e Instances \u003e Click on \u003cInstance-ID\u003e\n- In the bottom tabs -\u003e Click on Security\n- Security groups\n- Add inbound traffic rules as shown in the image (you can just allow TCP 8080 as well, in my case, I allowed `All traffic`).\n\n\n\n\n### Login to Jenkins using the below URL:\n\nhttp://\u003cec2-instance-public-ip-address\u003e:8080    [You can get the ec2-instance-public-ip-address from your AWS EC2 console page]\n\nNote: If you are not interested in allowing `All Traffic` to your EC2 instance\n      1. Delete the inbound traffic rule for your instance\n      2. Edit the inbound traffic rule to only allow custom TCP port `8080`\n  \nAfter you login to Jenkins, \n      - Run the command to copy the Jenkins Admin Password - `sudo cat /var/lib/jenkins/secrets/initialAdminPassword`\n      - Enter the Administrator password\n      \n\u003cimg width=\"1291\" alt=\"Screenshot 2023-02-01 at 10 56 25 AM\" src=\"https://user-images.githubusercontent.com/43399466/215959008-3ebca431-1f14-4d81-9f12-6bb232bfbee3.png\"\u003e\n\n### Click on Install suggested plugins\n\n\u003cimg width=\"1291\" alt=\"Screenshot 2023-02-01 at 10 58 40 AM\" src=\"https://user-images.githubusercontent.com/43399466/215959294-047eadef-7e64-4795-bd3b-b1efb0375988.png\"\u003e\n\nWait for the Jenkins to Install suggested plugins\n\n\u003cimg width=\"1291\" alt=\"Screenshot 2023-02-01 at 10 59 31 AM\" src=\"https://user-images.githubusercontent.com/43399466/215959398-344b5721-28ec-47a5-8908-b698e435608d.png\"\u003e\n\nJenkins Installation is Successful. You can now play with jenkins\n\n\u003cimg width=\"990\" alt=\"Screenshot 2023-02-01 at 11 14 13 AM\" src=\"https://user-images.githubusercontent.com/43399466/215961440-3f13f82b-61a2-4117-88bc-0da265a67fa7.png\"\u003e\n\n## Install the Docker Pipeline plugin in Jenkins:\n\n   - Log in to Jenkins.\n   - Go to Manage Jenkins \u003e Manage Plugins.\n   - In the Available tab, search for \"Docker Pipeline\".\n   - Select the plugin and click the Install button.\n   - Restart Jenkins after the plugin is installed.\n   \n![alt text](image.png)\n\nRestart Jenkins, always remember to restart jenkins as it is important to get the changes and updates done seamlessly.\n\n\n## Docker Slave Configuration\n\nRun the below command to Install Docker\n\n```\nsudo apt update\nsudo apt install docker.io\n```\n \n### Grant Jenkins user and Ubuntu user permission to docker deamon.\n\n```\nsudo su - \nusermod -aG docker jenkins\nusermod -aG docker ubuntu\nsystemctl restart docker\n```\n\nRestart Jenkins as it is a better approach\n\n```\nhttp://\u003cec2-instance-public-ip\u003e:8080/restart\n```\n\nThe docker agent configuration is now successful.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafwanuddinmairaj%2Fjenkins-learn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafwanuddinmairaj%2Fjenkins-learn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafwanuddinmairaj%2Fjenkins-learn/lists"}