티스토리 뷰
Resolution
In current versions of Jenkins (since 2.117) there are two command line arguments that control the login session timeout. Both of these may need to be set, depending on your desired outcome:
- sessionTimeout is set in minutes; a user will be logged out after this time, no matter what. Default is 30 minutes.
- sessionEviction is set in seconds; a user will be logged out after this time if their session is idle. Default is 30 minutes.
Prior to version 2.117 there was only the sessionTimeout option.
These arguments need to be passed to the Jenkins war file, NOT to the JVM. This article explains where the arguments should be added, depending on the OS/distribution you are using.
As an example, if you wanted to set the timeout for idle sessions to 1 hour and active sessions to 2 hours, you would use:
--sessionTimeout=120 --sessionEviction=3600
Ref.
https://docs.cloudbees.com/docs/cloudbees-ci-kb/latest/best-practices/setting-session-timeout
Customizing Jenkins login session timeout
You want to customize the Jenkins login session timeout, to increase or decrease the length of time before a logged-in user is automatically logged out.
docs.cloudbees.com
'DevOps > Jenkins' 카테고리의 다른 글
| Pyenv: 최신 버전으로 유지하기 (1) | 2023.12.23 |
|---|---|
| Jenkins: Slack 연동 시 Token 하나로 글로벌 셋팅할 때 주의사항 (0) | 2023.12.11 |
| Jenkins: JobConfigHistory Plugin Best Practices (0) | 2023.09.15 |
| Jenkins Script: How can I get a list of empty Folders and Multibranch jobs (0) | 2023.08.29 |
| Jenkins: Sesssion Timeout (세션타임 아웃) 설정하기 (0) | 2022.12.21 |
| Jenkins: 엑세스로그(Access Log) 설정하기 (1) | 2022.12.15 |
| Jenkins: 사용자 테마 설정 (How to apply to theme) (1) | 2022.10.14 |
| Ansible: How to change Locale to English (0) | 2022.10.14 |
- Total
- Today
- Yesterday
- groovy
- Shell Script
- 파이프라인
- ssl
- Ansible
- 젠킨스
- iTerm2
- URL Encoding
- Playbook
- 데브옵스
- 쓰레드덤프
- rundeck
- Jenkins
- PostgreSQL
- nginx
- Nexus
- rsync
- 엔서블
- Linux
- vagrant
- DevOps
- 플레이북
- Config History
- 리눅스
- 엔시블
- Docker
- Thread Dump
- openssl
- JVM
- Password manager
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |