Mon. Apr 22nd, 2024

You have Jenkins installed, there are a few things you may want to do to your environment to make life easier.

Login with Jenkins User

Be default the “jenkins” user is not allowed to login.  So even as root you can’t  “su – jenkins”.  If you need to be able to do this, then the following command will help you out:

sed -i -e 's/\/var\/lib\/jenkins:\/bin\/false/\/var\/lib\/jenkins:\/bin\/bash/g' /etc/passwd

Jenkins Auto-Start

In most cases you want Jenkins to start with the system is started.  Be default this isn’t the case, but it’s easy to change.

chkconfig jenkins on --level 2345

Manually Start/Stop/Restart Jenkins

Your probably going to need to manually start, stop or restart Jenkins at some point.  Here are the command lines:

service jenkins start
service jenkins stop
service jenkins restart

By Jeffery Miller

I am known for being able to quickly decipher difficult problems to assist development teams in producing a solution. I have been called upon to be the Team Lead for multiple large-scale projects. I have a keen interest in learning new technologies, always ready for a new challenge.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.