Let's start Jenkins using systemctl: sudo systemctl start jenkins Now that Jenkins and its dependencies are in place, we'll start the Jenkins server. When both of these are in place, run the update so that apt will use the new repository: sudo apt updateįinally, install Jenkins and its dependencies: sudo apt install jenkins Next, append the Debian package repository address to the server's sources.list: sudo sh -c 'echo deb binary/ > /etc/apt//jenkins.list' When the key is added, the system will return OK. To take advantage of the latest fixes and features, you can use the project-maintained packages to install Jenkins.įirst, add the repository key to the system: wget -q -O - | sudo apt-key add. ![]() The version of Jenkins included with the default Ubuntu packages is often behind the latest available version from the project itself. Use the update-alternatives command: sudo update-alternatives -config java To set this environment variable, first determine where Java is installed. Verify that the JDK is installed by checking the version of javac, the Java compiler: javac -version To install the JDK, execute the following command, which will also install the JRE: #for java 8 You may need the Java Development Kit (JDK) in addition to the JRE in order to compile and run some specific Java-based software. Verify the installation with: java -version ![]() This will allow you to run almost all Java software. This command will install the Java Runtime Environment (JRE). If Java is not currently installed, you'll see the following output: OutputĬommand 'java' not found, but can be installed with:Įxecute the following command to install OpenJDK: #for java 8 Next, check if Java is already installed: java -version To install this version, first update the package index: sudo apt update ![]() In this tutorial, we will install Jenkins in Ubuntu 18.04 but you can follow the same steps to install Jenkins Ubuntu 16.04. Jenkins is the leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project.
0 Comments
Leave a Reply. |