Steps to reproduce:
1. java -jar jenkins.war with no explicitly defined JENKINS_HOME has the default $HOME/.jenkins (unless $HOME/.hudson exists)
2. Run java -jar jenkins-cli.jar … login, creating $HOME/.hudson/cli-credentials on the server
3. Restart Jenkins, and it'll init with an empty home, as now $HOME/.hudson exists and is preferred to $HOME/.jenkins!
[JENKINS-21772] Use of CLI login command resets Jenkins after restart when using default JENKINS_HOME
Description |
Original:
Steps to reproduce: 1. `java -jar jenkins.war` with no explicitly defined `JENKINS_HOME` has the default `~/.jenkins` (unless `~/.hudson` exists) 2. Run `java -jar jenkins-cli.jar … login`, creating `~/.hudson/cli-credentials` on the server 3. Restart Jenkins, and it'll init with an empty home, as now `~/.hudson` exists and is preferred to `~/.jenkins`! |
New:
Steps to reproduce: 1. {{java -jar jenkins.war}} with no explicitly defined {{JENKINS_HOME}} has the default {{~/.jenkins}} (unless {{~/.hudson}} exists) 2. Run {{java -jar jenkins-cli.jar … login}}, creating {{~/.hudson/cli-credentials}} on the server 3. Restart Jenkins, and it'll init with an empty home, as now {{~/.hudson}} exists and is preferred to {{~/.jenkins}}! |
Description |
Original:
Steps to reproduce: 1. {{java -jar jenkins.war}} with no explicitly defined {{JENKINS_HOME}} has the default {{~/.jenkins}} (unless {{~/.hudson}} exists) 2. Run {{java -jar jenkins-cli.jar … login}}, creating {{~/.hudson/cli-credentials}} on the server 3. Restart Jenkins, and it'll init with an empty home, as now {{~/.hudson}} exists and is preferred to {{~/.jenkins}}! |
New:
Steps to reproduce: 1. {{java -jar jenkins.war}} with no explicitly defined {{JENKINS_HOME}} has the default {{$HOME/.jenkins}} (unless {{$HOME/.hudson}} exists) 2. Run {{java -jar jenkins-cli.jar … login}}, creating {{$HOME/.hudson/cli-credentials}} on the server 3. Restart Jenkins, and it'll init with an empty home, as now {{$HOME/.hudson}} exists and is preferred to {{$HOME/.jenkins}}! |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Assignee | New: Daniel Beck [ danielbeck ] |
Assignee | Original: Daniel Beck [ danielbeck ] | New: minal silimkar [ minal_silimkar ] |
Assignee | Original: minal silimkar [ minal_silimkar ] | New: Daniel Beck [ danielbeck ] |
Workflow | Original: JNJira [ 153772 ] | New: JNJira + In-Review [ 194686 ] |