Jenkins is a free and open source CI (Continuous Integration) tool which is written in JAVA. Jenkins is widely used for project development, deployment, and automation. Jenkins allows you to automate the non-human part of the whole software development process. It supports version control tools, including AccuRev, CVS, Subversion, Git, Mercurial, Perforce, ClearCase and RTC, and can execute Apache Ant, Apache Maven and sbt based projects as well as arbitrary shell scripts and Windows batch commands. The creator of Jenkins is Kohsuke Kawaguchi. Released under the MIT License.
Jenkins' security depends on two factors:
1. access control
2. protection from external threats.
Access control can be customized via two ways, user authentication and authorization.
Protection from external threats such as CSRF attacks and malicious builds is supported as well.
It does not require any special kind of hardware, you'll only need a CentOS 7 server and a root user access over it. You can switch from non root user to root user using sudo -i command.
It is highly recommended to install Jenkins on a freshly updated server. To upgrade available packages and system run below given command and it'll do the job for you.
yum -y update
Before going through the installation process of Jenkins you'll need to set up Java Virtual Machine or JDK to your system. Simply run following command to install Java.
yum -y install java-1.8.0-openjdk.x86_64
Once installation is finished you can check the version to confirm the installation, to do run following command.
The above command will tell you about the installation details of java. By running the above command you should see the following result on your terminal screen.
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b12)
OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)
Next, you'll need to setup two environment variables JAVA_HOME and JRE_HOME and to do so run following commands one by one.
cp /etc/profile /etc/profile_backupecho 'export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk' | sudo tee -a /etc/profileecho 'export JRE_HOME=/usr/lib/jvm/jre' | sudo tee -a /etc/profilesource /etc/profile
Finally print them for review using following commands.
You should see following output.
We have installed all the dependencies required by Jenkins and now we are ready to install Jenkins. Run following commands to install latest stable release of Jenkins.
The above two commands will add the jenkins repository and also import the key. If in case you have previously imported the key from Jenkins then the rpm --import will fail because you already have a key. Please ignore that and move on.
Now run following command to install Jenkins on your server.
yum -y install jenkins
Next, you'll need to start Jenkins services and set it to run at boot time and to do so use following commands.
Now you can access it through a web browser via http://yourServerIP .
In tutorial you learned to how to install and configure Jenkins on your CentOS 7 server. You also learned to install nginx and setting it up with Jenkins. We hope now you have enough knowledge to work with Jenkins.
Facebook0TwitterReddit0StumbleUpon0 Do you need to increase the memory limit in WordPress? Getting an error about memory Exhausted? The memory limit is one of the most common WordPress errors as the default limit of memory in WordPress is only set to 64mb! But there’s good news! The Memory Exhausted error is...
Facebook0TwitterReddit0StumbleUpon0 A vulnerability has been discovered in the “All In One WordPress Migration” WordPress plugin. All versions earlier than, and including 6.97 contain a vulnerability which allows Cross-Site Scripting (XSS).With over 2 million active installations, this vulnerability has the potential to be high impact, however, this is lessened by the...
Facebook0TwitterReddit0StumbleUpon0HostPresto will be launching a European point of presence in the coming weeks, specifically in Amsterdam. For customers needing their data located within the EU still please contact support to request migration to this location with ticket subject ‘EU Migration’. We will ensure this is actioned well before the Brexit...