• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Manage Jenkins in Linux

{{postValue.id}}

Jenkins System configuration and Plugin installation

Jenkins is an open source Java-based program with the packages for windows/Linux operating systems. It runs in servlet Container (Tomcat, Glass fish) and is supports more than 400 plugins. Jenkins System configuration and Plugin installation is explained.

Open the browser and type http://< IP_address> :8080 or http://< localhost> :8080 Then enter the login credentials.
Jenkins-Java-based-System-configuration-Plugin-installation-login-credentials

Click Manage Jenkins option to configure Jenkins.

Jenkins-Java-based-System-configuration-Plugin-installation-configure-Jenkins

The various options of Jenkins are listed as follows.

Jenkins-Java-based-System-configuration-Plugin-installation-Jenkins-options
Click Configure Settings, Type the required fields and click Save to proceed further.
Jenkins-Java-based-System-configuration-Plugin-installation-Configure-Settings

After configuring, click Save.

For managing plugins

Go to Manage Jenkins &rarr Manage Plugins.
Jenkins-Java-based-System-configuration-Plugin-installation-Manage-Plugins
For installing plugins and upgrading automatically, click Install without restart.
Jenkins-Java-based-System-configuration-Plugin-installation-Install-without-restart

To install plugin manually,

Open the terminal and run the following command.

[root@linuxhelp1 ~]# cd /var/lib/jenkins/
[root@linuxhelp1 jenkins]# ls
config.xml jenkins.model.DownloadSettings.xml
hudson.model.UpdateCenter.xml jenkins.model.JenkinsLocationConfiguration.xml
hudson.plugins.build_timeout.operations.BuildStepOperation.xml
.
.
.
plugins
hudson.tasks.Mailer.xml secret.key
hudson.tasks.Shell.xml secret.key.not-so-secret
[root@linuxhelp1 jenkins]# cd plugins/

Open the browser and paste the link of the plugin. Here, we are choosing hadoop.

Jenkins-Java-based-System-configuration-Plugin-installation-hadoop

Copy the link location of the required version.

Jenkins-Java-based-System-configuration-Plugin-installation-hadoop-package-version

Now paste the link location in the terminal to download the hadoop packages.

[root@linuxhelp1 plugins]# wget http://updates.jenkins-ci.org/download/plugins/hadoop/1.4/hadoop.hpi
--2016-07-06 05:11:08-- http://ftp.tsukuba.wide.ad.jp/software/jenkins/plugins/hadoop/1.4/hadoop.hpi
Resolving ftp.tsukuba.wide.ad.jp (ftp.tsukuba.wide.ad.jp)... 203.178.132.80, 2001:200:0:7c06::9393
Connecting to ftp.tsukuba.wide.ad.jp (ftp.tsukuba.wide.ad.jp)|203.178.132.80|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8061215 (7.7M)
Saving to: ‘ hadoop.hpi’ 

100%[===========================================================================================> ] 80,61,215 403KB/s in 25s

2016-07-06 05:11:33 (314 KB/s) - ‘ hadoop.hpi’  saved [8061215/8061215]

After the downloading, restart the jenkins service.

[root@linuxhelp1 plugins]# systemctl restart jenkins.service

After reloading, open the browser and login with the user credentials. Now the hadoop package is successfully installed.

Jenkins-Java-based-System-configuration-Plugin-installation-hadoop-package-installed

Go to Manage Jenkins&rarr Manage Plugins and then click Advanced tab to set the firewall configuration.

Jenkins-Java-based-System-configuration-Plugin-installation-firewall-configuration

In Manage Jenkins, click System information to view the system properties.
Jenkins-Java-based-System-configuration-Plugin-installation-System-information-system-properties
In Manage Jenkins, click System Logs to view the Jenkins Log.
Jenkins-Java-based-System-configuration-Plugin-installation-Manage-Jenkins-System-Logs-Jenkins-Log

In Manage Jenkins, click Manage nodes to configure and build node. You can configure any number of nodes as per your requirement.
Jenkins-Java-based-System-configuration-Plugin-installation-Manage-nodes-configure-build-node
In Manage Jenkins, click Prepare for shutdown to prevents any new builds from being started.
Jenkins-Java-based-System-configuration-Plugin-installation-Manage-Jenkins

Tags:
nicholas
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What are the components Jenkins is mainly integrated with?

A

Version Control system like GIT,SVN.
Build tools like Apache Maven.

Q

How to build can be scheduled in Jenkins?

A

By source code management commits,
After completion of other builds,
Can be scheduled to run at specified time (crons),
Manual Build Requests

Q

How will you secure Jenkins?

A

The way I secure Jenkins is mentioned below, if you have any other way to do it than mention that:

Ensure global security is on.
Ensure that Jenkins is integrated with my company’s user directory with appropriate plugin.
Ensure that matrix/Project matrix is enabled to fine tune access.
Automate the process of setting rights/privileges in Jenkins with custom version controlled script.
Limit physical access to Jenkins data/folders.
Periodically run security audits on same.

Q

What is the relation between Hudson and Jenkins?

A

You can just say Hudson was the earlier name and version of current Jenkins. After some issue, the project name was changed from Hudson to Jenkins.

Q

What you do when you see a broken build for your project in Jenkins?

A

There can be multiple answers to this question I will approach this task in the following way:

I will open the console output for the broken build and try to see if any file changes were missed. If I am unable to find the issue that way, then I will clean and update my local workspace to replicate the problem on my local and try to solve it.

If you do it in a different way then just mention that in your answer.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Elijah ?
Remote Desktop Connection Has Stopped Working

When accessing my remote machine server using remote desktop on a windows machine I am getting this error

forum (1)

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.