9
9

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 5 years have passed since last update.

Amazon Linux/CentOSのJenkinsでセッションタイムアウトを24時間にする

Last updated at Posted at 2014-05-16

jenkinsにログインしてたらいつの間にかセッションがタイムアウトしていて不便だったのでタイムアウト値を24時間にしてみた。

参照サイト

設定手順

  • /etc/sysconfig/jenkinsのJENKINS_ARGSの最後に--sessionTimeout=1440を追加
## Type:        string
## Default:     ""
## ServiceRestart: jenkins
#
# Pass arbitrary arguments to Jenkins.
# Full option list: java -jar jenkins.war --help
#
JENKINS_ARGS="--sessionTimeout=1440"
  • jenkins再起動
$ service jenkins restart

セッションのデフォルト値

  • jenkins.warのオプション確認すると60分らしい
$ java -jar /usr/lib/jenkins/jenkins.war --help
...
   --sessionTimeout         = set the http session timeout value in minutes. Default to what webapp specifies, and then to 60 minutes
...
9
9
2

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
9
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?