- Blog Categories
- Project Management
- Agile Management
- IT Service Management
- Cloud Computing
- Business Management
- Business Intelligence
- Quality Engineer
- Cyber Security
- Career
- Big Data
- Programming
- Most Popular Blogs
- PMP Exam Schedule for 2024: Check PMP Exam Date
- Top 60+ PMP Exam Questions and Answers for 2024
- PMP Cheat Sheet and PMP Formulas To Use in 2024
- What is PMP Process? A Complete List of 49 Processes of PMP
- Top 15+ Project Management Case Studies with Examples 2024
- Top Picks by Authors
- Top 170 Project Management Research Topics
- What is Effective Communication: Definition
- How to Create a Project Plan in Excel in 2024?
- PMP Certification Exam Eligibility in 2024 [A Complete Checklist]
- PMP Certification Fees - All Aspects of PMP Certification Fee
- Most Popular Blogs
- CSM vs PSM: Which Certification to Choose in 2024?
- How Much Does Scrum Master Certification Cost in 2024?
- CSPO vs PSPO Certification: What to Choose in 2024?
- 8 Best Scrum Master Certifications to Pursue in 2024
- Safe Agilist Exam: A Complete Study Guide 2024
- Top Picks by Authors
- SAFe vs Agile: Difference Between Scaled Agile and Agile
- Top 21 Scrum Best Practices for Efficient Agile Workflow
- 30 User Story Examples and Templates to Use in 2024
- State of Agile: Things You Need to Know
- Top 24 Career Benefits of a Certifed Scrum Master
- Most Popular Blogs
- ITIL Certification Cost in 2024 [Exam Fee & Other Expenses]
- Top 17 Required Skills for System Administrator in 2024
- How Effective Is Itil Certification for a Job Switch?
- IT Service Management (ITSM) Role and Responsibilities
- Top 25 Service Based Companies in India in 2024
- Top Picks by Authors
- What is Escalation Matrix & How Does It Work? [Types, Process]
- ITIL Service Operation: Phases, Functions, Best Practices
- 10 Best Facility Management Software in 2024
- What is Service Request Management in ITIL? Example, Steps, Tips
- An Introduction To ITIL® Exam
- Most Popular Blogs
- A Complete AWS Cheat Sheet: Important Topics Covered
- Top AWS Solution Architect Projects in 2024
- 15 Best Azure Certifications 2024: Which one to Choose?
- Top 22 Cloud Computing Project Ideas in 2024 [Source Code]
- How to Become an Azure Data Engineer? 2024 Roadmap
- Top Picks by Authors
- Top 40 IoT Project Ideas and Topics in 2024 [Source Code]
- The Future of AWS: Top Trends & Predictions in 2024
- AWS Solutions Architect vs AWS Developer [Key Differences]
- Top 20 Azure Data Engineering Projects in 2024 [Source Code]
- 25 Best Cloud Computing Tools in 2024
- Most Popular Blogs
- Company Analysis Report: Examples, Templates, Components
- 400 Trending Business Management Research Topics
- Business Analysis Body of Knowledge (BABOK): Guide
- ECBA Certification: Is it Worth it?
- How to Become Business Analyst in 2024? Step-by-Step
- Top Picks by Authors
- Top 20 Business Analytics Project in 2024 [With Source Code]
- ECBA Certification Cost Across Countries
- Top 9 Free Business Requirements Document (BRD) Templates
- Business Analyst Job Description in 2024 [Key Responsibility]
- Business Analysis Framework: Elements, Process, Techniques
- Most Popular Blogs
- Best Career options after BA [2024]
- Top Career Options after BCom to Know in 2024
- Top 10 Power Bi Books of 2024 [Beginners to Experienced]
- Power BI Skills in Demand: How to Stand Out in the Job Market
- Top 15 Power BI Project Ideas
- Top Picks by Authors
- 10 Limitations of Power BI: You Must Know in 2024
- Top 45 Career Options After BBA in 2024 [With Salary]
- Top Power BI Dashboard Templates of 2024
- What is Power BI Used For - Practical Applications Of Power BI
- SSRS Vs Power BI - What are the Key Differences?
- Most Popular Blogs
- Data Collection Plan For Six Sigma: How to Create One?
- Quality Engineer Resume for 2024 [Examples + Tips]
- 20 Best Quality Management Certifications That Pay Well in 2024
- Six Sigma in Operations Management [A Brief Introduction]
- Top Picks by Authors
- Six Sigma Green Belt vs PMP: What's the Difference
- Quality Management: Definition, Importance, Components
- Adding Green Belt Certifications to Your Resume
- Six Sigma Green Belt in Healthcare: Concepts, Benefits and Examples
- Most Popular Blogs
- Latest CISSP Exam Dumps of 2024 [Free CISSP Dumps]
- CISSP vs Security+ Certifications: Which is Best in 2024?
- Best CISSP Study Guides for 2024 + CISSP Study Plan
- How to Become an Ethical Hacker in 2024?
- Top Picks by Authors
- CISSP vs Master's Degree: Which One to Choose in 2024?
- CISSP Endorsement Process: Requirements & Example
- OSCP vs CISSP | Top Cybersecurity Certifications
- How to Pass the CISSP Exam on Your 1st Attempt in 2024?
- Most Popular Blogs
- Best Career options after BA [2024]
- Top Picks by Authors
- Top Career Options & Courses After 12th Commerce in 2024
- Recommended Blogs
- 30 Best Answers for Your 'Reason for Job Change' in 2024
- Recommended Blogs
- Time Management Skills: How it Affects your Career
- Most Popular Blogs
- Top 28 Big Data Companies to Know in 2024
- Top Picks by Authors
- Top Big Data Tools You Need to Know in 2024
- Most Popular Blogs
- Web Development Using PHP And MySQL
- Top Picks by Authors
- Top 30 Software Engineering Projects in 2024 [Source Code]
- More
- Tutorials
- Practise Tests
- Interview Questions
- Free Courses
- Agile & PMP Practice Tests
- Agile Testing
- Agile Scrum Practice Exam
- CAPM Practice Test
- PRINCE2 Foundation Exam
- PMP Practice Exam
- Cloud Related Practice Test
- Azure Infrastructure Solutions
- AWS Solutions Architect
- AWS Developer Associate
- IT Related Pratice Test
- ITIL Practice Test
- Devops Practice Test
- TOGAF® Practice Test
- Other Practice Test
- Oracle Primavera P6 V8
- MS Project Practice Test
- Project Management & Agile
- Project Management Interview Questions
- Release Train Engineer Interview Questions
- Agile Coach Interview Questions
- Scrum Interview Questions
- IT Project Manager Interview Questions
- Cloud & Data
- Azure Databricks Interview Questions
- AWS architect Interview Questions
- Cloud Computing Interview Questions
- AWS Interview Questions
- Kubernetes Interview Questions
- Web Development
- CSS3 Free Course with Certificates
- Basics of Spring Core and MVC
- Javascript Free Course with Certificate
- React Free Course with Certificate
- Node JS Free Certification Course
- Data Science
- Python Machine Learning Course
- Python for Data Science Free Course
- NLP Free Course with Certificate
- Data Analysis Using SQL
Installation Guide to Jenkins
Updated on 25 September, 2019
8.86K+ views
• 10 min read
Jenkins is a Java-based open-source automation tool with plugins designed for ongoing integration. Jenkins is used to constantly develop and test software projects that help developers to incorporate project modifications and make it simpler for users to achieve a new build. The Jenkins allows developers to quickly locate and resolve flaws in a code base and to automatically test their structures. Jenkins can be changed and expanded readily on all operating platforms and various devices, whether OS X, Windows or Linux. It immediately deploys code, produces test reports. During integration and continuous delivery, Jenkins can be configured according to the demands.
Also, read more about how to Install Jenkins on Ubuntu.
System Requirements for Jenkins Installation
Following are the software and hardware requirements for installing Jenkins:
Minimum hardware requirements:
- 256 MB of RAM
- 1 GB of drive space (although 10 GB is a recommended minimum if running Jenkins as a Docker container)
Recommended hardware configuration for a small team:
- 1 GB+ of RAM
- 50 GB+ of drive space
Installation on Windows
You must first install JDK. Jenkins promotes JDK8 only at this time. Jenkins can be installed when Java is running. The recent Jenkins package for Windows (presently version 2.191) can be downloaded. Click on the Jenkins exe file to unzip the file into a folder.
To begin the installation click on "Next."
To install Jenkins in another directory, click the "Change..." button. I'll hold the default choice in this instance and click on "Next."
To begin the installation process, click on the "Install" button.
The installation is being processed.
When finished, you can finish the setup by clicking the "Finish" button.
The URL http:/localhost:8080 will automatically be redirected to a Jenkins local page or the browser can be pasted.
Copy and paste the password from the C:\Program Files (x85)\Jenkins\secrets\initialAdminPassword file for Jenkins unlocking. Click on the button "Continue.
The suggested plugins or chosen plugins that you select can be installed. We will install the suggested plugins to maintain it easy.
Wait for the complete installation of plugins.
The next step is to build a Jenkins admin user. Click "Save and Continue." Please enter your information.
To finish the Jenkins setup, click on "Save and Finish."
To begin Jenkins, click on "Start using Jenkins."
Below is the default page of Jenkins.
Jenkins Installation on Linux/CentOS 7 system
Make sure that you are signed in as a user with sudo privileges before continuing this tutorial.
- The first step is to install Java, Jenkins being a Java application. To set up OpenJDK 8 package, execute the following command:
$ sudo yum install java-1.8.0-openjdk-devel
Jenkins does not currently support Java 10 (and Java 11). Make sure that Java 8 is the default Java version when multiple Java versions are installed on your computer.
- The next step is to allow the repository of Jenkins. To do so, use the following curl command to import the GPG key:
$ curl --silent --location http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | sudo tee /etc/yum.repos.d/jenkins.repo
Add your system's repository with:
$ sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
- Upon activation of the repository, install the recent stable Jenkins version by typing:
$ sudo yum install jenkins
- Upon completion of the installation, begin the Jenkins service with:
$ sudo systemctl start jenkins
- To verify if it has been successful, check with below command:
$ systemctl status jenkins
- Something like this you should see:
Output
jenkins.service - LSB: Jenkins Automation Server
Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
Active: active (running) since Thu 2018-09-20 14:58:21 UTC; 15s ago
Docs: man:systemd-sysv-generator(8)
Process: 2367 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/jenkins.service
- Finally, allow the Jenkins service to start on system boot
$ sudo systemctl enable jenkins
Output
jenkins.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig jenkins on
Opening Firewall port
If you install Jenkins on a remote CentOS firewall-protected server, port 8080 is necessary. To open the required port, use the following instructions:
$ sudo firewall-cmd --permanent --zone=public --add-port=8080/tcpsudo firewall-cmd --reload
Setting Jenkins
Open your browser and type in your domain or IP address followed by port 8080 in order to set your fresh Jenkins setup:
http://your_ip_or_domain:8080
Below screen will be displayed which prompts you to enter the admin password generated during setup:
To print the password on your terminal, use the following instructions:
$ sudo cat /var/lib/jenkins/secrets/initialAdminPassword
The alphanumeric password should be 32 characters long, as shown below:
Output
3226*****************************
Copy your terminal password, paste it in the password field for the Administrator and click on Continue.
On the next screen, you are asked if you would like to install or pick certain plugins. To begin the installation process instantly, just click on the Install suggested plug-ins box.
When the installation is finished, the first administrative user is prompted for the setting. Fill in all the necessary data. and click the Save and Continue.
On your next page, the URL for the Jenkins instance will be requested. An automatically produced URL will be added to the URL field.
To finish the configuration, click the Save and Finish button to verify the setup.
Finally, click start using Jenkins Button to start the process and the user we created in one of the past steps as admin user will log in Jenkins dashboard.
You have effectively mounted Jenkins on your CentOS scheme when you have reached this point.
Jenkins Installation on Mac
Prerequisite
- A Mac machine with Mac OSX Yosemite or higher with admin access
- Installation of Java Development Kit on the machine.
- Access to Git, Svn, etc. remote repository.
Download Jenkins installer.pkg file from Jenkins ' official website and get through the wizard setup.
The jenkins setup wizard sets up a distinct Jenkins user on your system.We need to make some changes in the ‘Users & Groups’ section as well. Do follow below steps.
- Open ‘System Preferences -> Users & Groups’
- Click on the Lock icon located in the bottom left corner which reads, ‘Click the lock to make changes’. Enter your login password.
- Under the ‘Other Users’ section you may see the user without any name but with admin rights. This is our Jenkins user. Let's rename it.
- Right-click the empty user and select Advanced Options. This will show you all the details. Give the ‘Full name’ as Jenkins. Press OK
- Click on ‘Reset Password’. Enter a new password and make sure that you remember this.
Now our Jenkins user is almost ready.This is just like another mac user with admin rights.Now restart your Mac machine and log in with Jenkins user with the password which you just reset.
Click the lock to save the changes and restart the system to login with Jenkins user account.
In localhost Jenkins resides at port 8080.
Open your browser, go to localhost:8080 and make the original set-up, which consists of installing some plugins and creating account for safety purpose.
Setting Jenkins as Launch agent
- Jenkins operates by default as a daemon. A daemon is a non-interactive background that operates in the entire scheme and is not linked to a particular user.
- Much of CI runs simulators and other GUI apps, so another option is required. You can modify Jenkins as a launch agent to resolve this. On behalf of the user, a launch agent operates behind the scenes.
- You need to edit the settings folder and alter your place to begin rebooting automatically if you want to alter how the Jenkins process is started.
- Enter the below command to unload Jenkins as a Daemon
sudolaunchctlunload/Library/LaunchDaemons/org.jenkins-ci.plist - Next, migrate to the LaunchAgents folder the.plist file which defines how Jenkins will be running.
sudo mv /Library/LaunchDaemons/org.jenkins-ci.plist /Library/LaunchAgents/ - Start the jenkins again and now it will run as launch agent.