![]() OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing) Step #1: Add Jenkins APT Repository Key Thanks.OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04) If you liked this post on how to install Jenkins on an Ubuntu 20.04 VPS, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. ![]() They are available 24×7 and will take care of your request immediately. Of course, you don’t have to install Jenkins on Ubuntu 20.04, if you use one of our Managed Linux Cloud VPS Plans, in which case you can simply ask our expert Linux admins to set up Jenkins on Ubuntu 20.04 for you. This will redirect you to the Jenkins dashboard and you will be logged in as the admin user you created previously.Ĭongratulations! You have successfully installed Jenkins on your Ubuntu 20.04 virtual private server. ![]() You can choose either your domain name or the IP address of your server and click Save and Finish. Your Jenkins instance is now ready and you can click on Start using Jenkins to continue. On the next page, we are asked to choose or confirm the preferred URL for our Jenkins. Once the installation is completed, we are asked to create a new Admin user for our Jenkins installation.įill in the required information and click Save and Continue. ![]() We will choose to Install the Suggested Plugins, and the installation process will continue. On the next screen, you can choose to customize your Jenkins by installing suggested plugins by the setup wizard, or select which plugins to install. You will see a 32-character alphanumeric password like the one shown below: 5892f8f3a14b447092c44b2da6057803Ĭopy and enter the password in the Administrator password field and then click Continue. To retrieve the password, we will need to execute the following command in our terminal: sudo cat /var/lib/jenkins/secrets/initialAdminPassword To do this, we will access our installation in our browser, using the IP address of our server or domain name at ip-address-or-domain:8080The first page will ask us to unlock our Jenkins by entering the password from the provided location on our server. We can now finish the installation and configure our Jenkins. Loaded: loaded (/etc/init.d/jenkins generated)Īctive: active (exited) since Fri 15:42:41 UTC 2min 58s agoĬGroup: /system.slice/rvice Step 4. rvice - LSB: Start Jenkins at boot time.To verify that Jenkins is running on our system, we can run the status command: sudo systemctl status jenkins Once this is done, run the following commands to install Jenkins on your system: sudo apt updateĪfter the installation is completed, we can start Jenkins using the following command: sudo systemctl start jenkins We will first import the repository GPG key using the following command: wget -q -O - | sudo apt-key add -Īnd then, add the Jenkins repository to our server with: sudo sh -c 'echo deb binary/ > /etc/apt//jenkins.list' To install the latest version of Jenkins, we will need to add the Jenkins repository to our server. OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing) Step 3. OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04) We can verify the installation and Java version with: java -version We can do this by running the following command: sudo apt install openjdk-11-jdk In this step, we will install Java 11 through the OpenJDK 11 package – the open-source version of Java Runtime Environment (JRE) and Java Development Kit (JDK). Jenkins is a Java-based application and it requires either Java 8 or Java 11 runtime environment on the server. Once logged in, make sure that your server is up-to-date by running the following commands: sudo apt update -y Of course, you will need to replace IP_ADDRESS and PORT_NUMBER with your actual server IP address and SSH port number if necessary. To do this, use the following command: ssh _ADDRESS -p PORT_NUMBER Connect to Your Server & Update the Server OS Packagesīefore we begin, you need to connect to your server via SSH as the root user. Full SSH root access (or a user with sudo privileges) is also required.For the purposes of this tutorial, we will be using an Ubuntu 20.04 VPS.It supports version control tools, including AccuRev, Subversion, Git, CVS, Perforce, ClearCase, Mercurial, and RTC, and can execute Apache Ant, Apache Maven, and sbt based projects as well as arbitrary shell scripts. Jenkins is widely used for building, deploying and automating any project, providing hundreds of different plugins. Jenkins is a simple, free and open-source Continuous Integration tool (CI), which is one of the most popular application development practices in recent times.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |