Md. Minhazul Haque
Minhaz's Blog

Minhaz's Blog

Increase Jenkins Session Timeout Value on Ubuntu

Increase Jenkins Session Timeout Value on Ubuntu

Md. Minhazul Haque's photo
Md. Minhazul Haque
·Apr 30, 2017·

1 min read

I know it's annoying when you are logged out of your own local system withing a short period of time, right? You can set a custom Session Timeout value for Jenkins so you will not be kicked out of your system frequently. Simple open the following file in editor.

nano /etc/default/jenkins

Then do add --sessionTimeout=480 after JENKINS_ARGS. So the line will look like the following.

JENKINS_ARGS="--webroot=/var/cache/$NAME/war --httpPort=$HTTP_PORT --sessionTimeout=480"

Now what? Restart Jenkins service and you are done. :)

 
Share this