Contents:

Practical course: “Profession DevOps Engineer"
Learn moreIn the distant past, when information technology was just beginning to develop, programmers would bring large stacks of punch cards to the office to make changes to code. Those days are over, and today, new features are developed continuously, with instant delivery to users. One of the key factors in this transformation has been continuous integration and delivery systems such as Jenkins, which automate processes and significantly speed up software development.
In this article, you will learn about:
- What is CI/CD;
- What is Jenkins;
- Why is it good;
- How to install it
- On Windows;
- On Ubuntu;
- How to configure Jenkins.

An expert is a specialist with deep knowledge and experience in a particular field. Experts play a key role in various fields, such as science, technology, business, and the arts. Their opinions are often authoritative and sought-after, which allows them to influence decision-making and industry development. Typically, experts participate in research, conduct analysis, and provide recommendations based on their knowledge. It's important to note that expert status is achieved not only through education but also through years of practical experience. Expert opinions can be useful for both professionals and the general public seeking high-quality information.
CTO at Flocktory, Program Director for the DevOps Engineer profession at Skillbox, and Director of the Program Committee for the DevOpsConf conference. He has significant experience in DevOps and project management and contributes to the development of professional standards and educational programs in this area.
First things first: what is CI/CD?
Jenkins is based on the principle of continuous integration and development. This approach allows developers to continuously add new features and improvements to the code, as if they were assembling a puzzle, constantly integrating new pieces. Unlike an iterative approach, which first builds a final version of a product and then goes through testing and publishing phases, Jenkins enables faster and more efficient development, allowing teams to quickly respond to changes and improve software quality. This method promotes increased productivity and reduced time to market, making Jenkins a popular choice among developers and DevOps teams. Continuous development involves two key aspects. The first is continuous integration, which automates the process of merging code and verifying its functionality. The second is continuous deployment, which allows for the rapid and efficient deployment of updates to the production environment. These two elements work together to ensure high software quality and accelerate time to market. Continuous development promotes team agility and improves collaboration between developers. This approach allows organizations to respond more quickly to changing requirements and ensure higher user satisfaction. CI (continuous integration) The idea is that all new code is immediately added to the project's master branch.
The terms CI and CD are often used together, which is where this approach gets its name—CI/CD. There are many other practices related to uninterrupted code delivery. If you're interested in learning more, we recommend checking out our introductory guide to the DevOps methodology. This resource will help you better understand the principles and methods behind effective software development and delivery.

Rework the text, but stay on-topic. Don't add anything unnecessary. Adjust the text for SEO and, if necessary, expand its content. Avoid using emojis and unnecessary characters. Do not include sections such as 1, 2, 3, or *. Simply provide plain text.
Read also:
DevOps: Key Concepts, Culture, History, and Benefits
DevOps is a methodology that integrates development (Dev) and operations (Ops) processes. It is an approach that aims to improve the interaction between development and operations teams, thereby accelerating the process of creating and delivering software.
The core concepts of DevOps include process automation, continuous integration and delivery, and monitoring and feedback. Automation helps minimize errors and speed up application deployment. Continuous integration and delivery ensure faster and more reliable delivery of updates, which in turn improves product quality. Monitoring and feedback help teams quickly respond to changes and improve performance.
The DevOps culture is based on collaboration, openness, and respect. It promotes an environment where teams can freely share ideas and experiment with new approaches. This not only improves software quality but also increases employee satisfaction.
The history of DevOps began in the late 2000s, when the need for more efficient methods of software development and delivery arose. The emergence of Agile methodologies and cloud technologies contributed to the development of DevOps, which became a natural continuation of these trends.
The benefits of implementing DevOps include reduced deployment time, increased software quality, and improved communication between teams. This allows companies to respond faster to market needs and remain competitive.
In conclusion, DevOps is an important aspect of the modern software development process that helps organizations optimize their processes and improve product quality.
The steps of the CI/CD pipeline can be described as follows:
The first stage involves automating the code integration process, which allows developers to frequently merge their changes with the main repository. This process includes automated testing, which ensures the early detection of errors.
The next stage is continuous delivery, where the code is automatically prepared for deployment. At this stage, it is checked for compliance with quality and security standards, as well as the ability to successfully deploy in various environments.
The final stage is continuous deployment, in which code changes are automatically implemented in the production environment. This allows users to quickly receive new features and fixes, and minimizes the time to market.
Thus, the CI/CD pipeline significantly speeds up the development process, improves software quality, and ensures more effective interaction between development teams and operations services.
- Build. The developer writes the code according to the task and adds it to the main software in the repository using CI tools (we will discuss them a little later).
- Testing. A team of QA engineers checks the code manually or automatically. If a bug or defect is found, the code is returned to the programmers for revision.
- Release. The customer reviews the product and, if satisfied, sends it to end users.
- Feedback and Refinement. Users leave their feedback on the program's performance. Based on this data, new specifications are created for the programmers, and our pipeline is restarted.
The advantage of this approach is the ability to quickly introduce new features to users without waiting for the final release. However, there is a downside: the effective functioning of such a pipeline requires a team of testers and DevOps engineers, which can be financially burdensome for smaller companies. To optimize the process, it is important to find a balance between development and support costs, which will help ensure stable and high-quality product updates.
What is Jenkins
Jenkins is a powerful continuous integration and continuous delivery (CI/CD) tool written in Java. This framework offers flexible customization to meet specific project needs through numerous plugins and extensions. You can integrate Jenkins with various version control systems, cloud services such as Yandex Cloud, and project management systems such as Jira. Thanks to its extensibility and active community, Jenkins has become one of the most popular solutions for automating software development and deployment processes.
Jenkins provides many core functions, which are plugins responsible for various stages of the pipeline, including building and testing. This set of tools is called a pipeline and is available out of the box. If more features are required, additional extensions are easily downloaded from the Jenkins marketplace.
Jenkins operates on a distributed architecture, where a leading master server controls all processes and distributes tasks. There are also slave servers, known as agents, that help offload the master server by performing specific tasks. This system enables more efficient and scalable execution of processes, which is especially important for large projects and teams. Using Jenkins in a distributed environment helps optimize build times and increase software development productivity.
Most projects use multiple slave servers for different tasks: one server for development, another for testing, and a third for handling user requests. In the initial stages, when the application has not yet scaled, development can be carried out on a single server. However, if it fails, all participants in the process, including users, testers, and programmers, will be in a difficult situation. To ensure system stability and efficiency, it is recommended to divide tasks between multiple servers. This allows you to minimize risks and improve productivity, ensuring uninterrupted access to services.

This is also useful if You plan to develop several versions of the application for different operating systems, such as Windows, Linux, or macOS. In this case, it makes sense to use several slave servers, each with its own unique environment to optimize the application. This approach will ensure compatibility and improve performance across different platforms.
What's good about Jenkins
The main advantages of this system.
- Cross-platform. There are versions of the application for Linux, macOS, and Windows.
- Open Source philosophy. The application is free to use, and its code is available for anyone to study.
- Integration with cloud solutions: Azure, Google Cloud, DigitalOcean, Yandex Cloud, and others.
- Developed community. Solving potential problems is easier by searching for similar cases that have already been resolved.
- Many plugins. There are about 2000 of them in the Jenkins marketplace alone.
- Suitable for complex projects. But this can also be considered a disadvantage, since Jenkins may seem "heavy" for small tasks.
Now it's time to activate our Jenkins pipeline.
Installing Jenkins
Jenkins is a Java application, so to install it, you need the appropriate environment - JDK (Java Development Kit) from Oracle. Installing the JDK provides the necessary platform for the correct operation of Jenkins and its functionality.
Installation will be performed on two operating systems: Windows 11 and Ubuntu 22.04. Let's start with the Windows operating system.
First, you need to prepare the working environment. Download the latest version of the JDK from the official website. In this case, it is the jdk-21_windows-x64_bin.exe file. Make sure you download the latest version to avoid compatibility issues and take advantage of all the new features.

Downloading may take up to one hour. After the download is complete, you need to run the installation file.

Remember or Copy the installation path: C:\Program Files\Java\jdk-21\. You will need this path later. Wait for the installation to complete.

Installation complete! Now you can close the window, and the JDK is successfully installed.
Let's install Jenkins. To do this, go to the official Jenkins download page, select the Windows version, download the distribution, and run the installer. Make sure to follow the on-screen instructions to correctly install Jenkins on your system.

During the installation process, change the logon method from «Run service as local or domain user» to «Run service as LocalSystem». In this case, the authorization fields will be deactivated, but this will not cause problems, since the login and password can be entered in the next step.

It is recommended to use the standard port 8080 for Jenkins. Leaving this port by default will ensure compatibility with most installations and simplify the setup process.

Test the port by clicking the "Test Port" button. This will check its functionality and ensure the connection is configured correctly. Configuring and testing the port are important steps to ensure reliable and stable operation of your device or application.

Testing completed successfully. In the next step, we'll need the previously saved path to the JDK, which in our case is C:\Program Files\Java\jdk-21\. Enter this path in the appropriate field and click the "Next" button.

In the next step, we confirm the installation of the proposed components. This is an important step that ensures the correct operation of the program and the integration of all the necessary functions. Make sure all components are selected correctly to avoid potential problems in the future.

Jenkins installation completed successfully. Now you can start configuring and using Jenkins to automate the build and deployment processes of your projects. Jenkins is a powerful CI/CD tool that allows you to optimize workflows and increase development efficiency. Make sure you familiarize yourself with the main features and capabilities of Jenkins to utilize its full potential.

Close the installer and check, Check whether the required process has started in Task Manager. Make sure the program is functioning correctly and the process is displayed in the list of active processes. If the process is missing, repeat the installation or troubleshoot any issues.

Preparing the program for work will be discussed in the next section. Now let's focus on the Ubuntu system.
Before installation, make sure that Java is installed on your system, as Jenkins will not function without it. To check for Java, open a terminal using the keyboard shortcut Ctrl + Alt + T or search for terminal through the search menu. Enter the following command:
If you receive the message "java" not found when you run the command, it indicates that the Java package is missing from your system. To fix this issue, you need to install the Java Development Kit (JDK) or Java Runtime Environment (JRE), depending on your needs. Installing Java will allow you to run Java programs and develop applications in this language. Make sure that you set the environment variables correctly after installation so that the system can recognize the "java" command.
Installing Java on an Ubuntu system may seem like a complicated task, but by following simple steps, you can quickly set up a development environment. Java is a popular programming language used to create a variety of applications, including web applications and mobile applications. To install Java on Ubuntu, follow these steps.
First, open a terminal. You can do this by pressing Ctrl + Alt + T. After that, refresh your package list to make sure you have access to the latest versions of the software. Enter the command:
sudo apt update
Once your package list is updated, you can install OpenJDK, which is an open source version of the Java Development Kit. To install OpenJDK, run the command:
sudo apt install openjdk-11-jdk
This command will install Java 11, which is one of the most stable and widely used versions. If you need a different version, you can replace «11» with the version you want, for example, «8» or «17».
Once the installation is complete, you can check whether Java was installed successfully by running the command:
java -version
This command will display the installed Java version, confirming a successful installation. If necessary, you can also install additional Java-related tools and libraries to enhance the functionality of your development environment.
By following these simple steps, you can easily install Java on Ubuntu and start developing applications.
To get started, go to the official Oracle website and download the JDK package for Linux. You will need the installation file in x64 Compressed Archive format. Make sure you choose the latest version to get access to all updates and improvements.

Copy the link to download the file and use Use the wget command to download the installation file directly to your computer.
Create a folder to unzip the archive.
Replace "our_folder" with your own name. Now unzip the archive to the created directory.
The JDK will be installed via a PPA (Personal Package Archive), which must be added to the list of repositories. This method provides access to the latest versions of the JDK and simplifies the installation and updating process. After adding the PPA, you can easily install the JDK using standard package manager commands, allowing you to quickly set up a development environment for working with Java.
Updating your package list is an important part of managing the software on your device. Regular updates allow you to get the latest versions of programs, which may contain bug fixes, new features, and security improvements. To update your package list, use the command corresponding to your operating system. This will ensure that the software is up-to-date and improve system performance. Remember to update regularly to minimize risks and maintain stable operation of your device.
Install JDK 21 by following the instructions on the official Oracle or OpenJDK website. Make sure you select the version that matches your operating system. After downloading the installation file, follow the installation steps to properly configure the JDK on your computer. Verify the installation by running the command "java -version" in the command line. Make sure the JDK 21 version is displayed to ensure the development environment is successfully set up.
During the process, we confirm our agreement with the terms of use.
Verify the successful installation of Java by prompting for the version. Make sure you have completed all the installation steps and open a command prompt or terminal. Enter the command to check the Java version. If the installation was successful, you will see information about the version of Java installed. This confirms that Java is correctly installed and ready for use.
After the language is successfully installed, the Java version will be displayed in the console. In this case, it's version 21.
First, we obtain the GPG encryption key using the curl command. This key is needed to verify the authenticity of packages downloaded from the Jenkins repository. To avoid unnecessary steps, we'll install the key on the system immediately using the sudo tee command.
Next, you need to add the Jenkins repository to the list of available packages for the Ubuntu operating system. This will allow you to install and update Jenkins using standard package management tools. Make sure you follow the current instructions for adding the repository to ensure Jenkins works correctly on your system.
You can check that the addresses and paths are entered correctly on the download page. Please ensure that all entered data is in the correct format to avoid upload errors.

Updating the package list is an important step in Software management. This ensures you have the latest application versions and security patches. Regularly updating your package list ensures you're always running the latest software versions, which improves system performance and security. Remember to perform this procedure periodically to keep your environment up-to-date.
It's time to install Jenkins. It's a powerful tool for automating development and continuous integration processes. Installing Jenkins will allow you to effectively manage builds, tests, and deployments of applications. First, ensure you have all the necessary dependencies and system requirements. Then, follow the official Jenkins documentation to install it on your platform. After installation, you can configure Jenkins to work with various projects and integrations, significantly simplifying the development process and increasing its efficiency.
After installation, you need to start the service.
Checking the status of work is an important step in any process. Regular monitoring allows you to promptly identify potential problems and take action to resolve them. Ensure that all systems are functioning correctly and tasks are completed according to established deadlines. This will help maintain a high level of productivity and efficiency for your team. Remember to record the results of the check so that you can analyze the progress and make any necessary adjustments later.
Active: active (running)…
To ensure that Jenkins functions correctly, you need to open network port 8080 in your firewall. To do this, you should connect to the server using SSH. This will allow you to make the necessary changes to the firewall settings and ensure access to Jenkins for users and other services.
Run a firewall to secure your network. A firewall helps protect your system from unauthorized access and malicious attacks by monitoring incoming and outgoing traffic. Enabling a firewall is an important step in configuring the security of your device. Be sure to regularly review your firewall settings and update its rules to maintain maximum protection.
For Jenkins to function correctly, a specific port must be opened. This will ensure uninterrupted access to the Jenkins server and allow users to interact with the interface. Make sure the selected port is not in use by other services and is accessible to external connections. Proper port configuration is an important step in the Jenkins installation and configuration process.
Verify that all elements have opened correctly.
To receive a response, you must specify lines containing the words «allow» and «Anywhere». Make sure your request includes these keywords to ensure you receive the appropriate result.
Congratulations! Jenkins has been successfully installed and running on your server. You now have access to a powerful tool for automating development processes and continuous integration. You can optimize workflows, improve code quality, and reduce application deployment times. Customize your projects and start leveraging the power of Jenkins to reach new heights in software development.
How to Configure Jenkins
To begin configuring Jenkins, enter the command required to run the installation. Make sure you have all the necessary permissions and dependencies to avoid possible errors. Setting up Jenkins involves selecting the required plugins, creating user accounts, and configuring the project. Follow the on-screen instructions to successfully complete the setup process and start working with Jenkins.
- http://server_ip:8080 — for Ubuntu;
- http://localhost:8080 — for Windows.
The setup will be almost the same for both operating systems. In this case, we will focus on the setup process under Windows.
When you click the link, the Jenkins unlock window will open. Here you will notice one important difference between the operating systems - the address of the password file. For Ubuntu-based systems, the path to the file will be different than in Windows. Make sure you are using the correct address to successfully unlock Jenkins.

Enter the address in the admin password field and click the button "Continue."
A window will open prompting you to install plugins. You can download the standard set of plugins or select the ones you need. We recommend choosing the first option to simplify the process.

The download process begins.

If you have problems loading the plugin, click the «Retry» button. to try again.

After installing the plugins, you must enter your authorization data, including your username and password. This will allow you to access the plugins' functionality and customize them to suit your needs. Make sure the entered data is correct to avoid problems with further work.

We save the settings, and as a result we receive a notification about successful configuration - Jenkins is now ready to go.

Click the "Start using Jenkins" button to go to Jenkins program interface.

Jenkins installation and configuration have been successfully completed. The system is now ready to perform the assigned tasks. Jenkins is a powerful tool for automating CI/CD processes that will help streamline application development and deployment.
Learn more about programming and coding in our Telegram channel. Subscribe to stay up to date with useful tips and interesting content!
Study additional materials:
- What is JDK and what is it for?
- From working at the Ministry of Ecology to writing Java code for a large bank: Anton's path
- All about Java: the ecosystem, popular frameworks, build systems, JDK, JVM, and the future of the language

