0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Jenkinsのセッションタイムアウト時間を設定する

Last updated at Posted at 2021-10-11

設定値を探る

  • JENKINS_ARGSに--sessionTimeout(分)を設定すればいいらしい。デフォルトは60分。
$ java -jar /usr/lib/jenkins/jenkins.war --help | grep sessionTimeout
   --sessionTimeout         = set the http session timeout value in minutes. Default to what webapp specifies, and then to 60 minutes

設定する

  • バックアップ作成して設定
cp /etc/sysconfig/jenkins /tmp/jenkins
vi /etc/sysconfig/jenkins
  • 変更内容確認。今回は120分に設定してみた。
diff -u /tmp/jenkins /etc/sysconfig/jenkins
--- /tmp/jenkins	2021-10-11 11:20:13.331500463 +0900
+++ /etc/sysconfig/jenkins	2021-10-11 11:22:16.779657555 +0900
@@ -174,4 +174,4 @@
 # Pass arbitrary arguments to Jenkins.
 # Full option list: java -jar jenkins.war --help
 #
-JENKINS_ARGS=""
+JENKINS_ARGS="--sessionTimeout=120"

サービス再起動

service jenkins restart

後始末

  • 問題なければバックアップ削除
rm /tmp/jenkins
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?