Confirm either the domain name for your server or your server’s IP address:Īfter confirming the appropriate information, click Save and Finish. You’ll receive an Instance Configuration page that will ask you to confirm the preferred URL for your Jenkins instance. Refer to How to Configure Jenkins with SSL Using an Nginx Reverse Proxy on Ubuntu 22.04 to protect user credentials and information about builds that are transmitted via the web interface.Įnter the name and password for your user: Note: The default Jenkins server is NOT encrypted, so the data submitted with this form is not protected. It’s possible to skip this step and continue as admin using the initial password from above, but we’ll take a moment to create the user. When the installation is complete, you’ll be prompted to set up the first administrative user. We’ll click the Install suggested plugins option, which will immediately begin the installation process. The next screen presents the option of installing suggested plugins or selecting specific plugins: sudo cat /var/lib/jenkins/secrets/initialAdminPasswordĬopy the 32-character alphanumeric password from the terminal and paste it into the Administrator password field, then click Continue.In the terminal window, use the cat command to display the password: You should receive the Unlock Jenkins screen, which displays the location of the initial password: To set up your installation, visit Jenkins on its default port, 8080, using your server domain name or IP address: your_server_ip_or_domain:8080 With Jenkins installed and a firewall configured, you have completed the installation stage and can continue with configuring Jenkins. If everything went well, the beginning of the status output shows that the service is active and configured to start at boot: Since systemctl doesn’t display status output, we’ll use the status command to verify that Jenkins started successfully: Now that Jenkins is installed, start it by using systemctl: sudo systemctl start rvice Now that Jenkins and its dependencies are in place, we’ll start the Jenkins server. The portion of the line ensures that apt will verify files in the repository using the GPG key that you just downloaded.Īfter both commands have been entered, run apt update so that apt will use the new repository.įinally, install Jenkins and its dependencies: sudo sh -c 'echo deb binary/ > /etc/apt//jenkins.list'.Next, let’s append the Debian package repository address to the server’s sources.list: The gpg -dearmor command is used to convert the key into a format that apt recognizes. wget -q -O - | sudo gpg -dearmor -o /usr/share/keyrings/jenkins.gpg.To ensure you have the latest fixes and features, use the project-maintained packages to install Jenkins.įirst, add the repository key to your system: The version of Jenkins included with the default Ubuntu packages is often behind the latest available version from the project itself. Oracle JDK 11 installed, following our guidelines on installing specific versions of OpenJDK on Ubuntu 22.04.Visit Jenkins’s “ Hardware Recommendations” for guidance in planning the capacity of a production-level Jenkins installation. We recommend starting with at least 1 GB of RAM. One Ubuntu 22.04 server configured with a non-root sudo user and firewall by following the Ubuntu 22.04 initial server setup guide.To secure your installation for production, follow the guide How to Configure Jenkins with SSL Using an Nginx Reverse Proxy on Ubuntu 22.04. At the end of this tutorial you will have an unsecured Jenkins server ready for a development deployment. In this tutorial you will install Jenkins on Ubuntu 22.04, start the development server and create an administrative user to get started exploring Jenkins automation. Jenkins is Java-based, installed from Ubuntu packages or by downloading and running its web application archive (WAR) file - a collection of files that make up a complete web application to run on a server. Jenkins is an open-source automation server that automates the repetitive technical tasks involved in the continuous integration and delivery of software.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |