Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21772

Use of CLI login command resets Jenkins after restart when using default JENKINS_HOME

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cli, core
    • Labels:
      None
    • Environment:
      1.552-SNAPSHOT
    • Similar Issues:

      Description

      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!

        Attachments

          Activity

          danielbeck Daniel Beck created issue -
          danielbeck Daniel Beck made changes -
          Field Original Value New Value
          Description 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`!
          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}}!
          danielbeck Daniel Beck made changes -
          Description 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}}!
          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}}!
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          danielbeck Daniel Beck made changes -
          Assignee Daniel Beck [ danielbeck ]
          minal_silimkar minal silimkar made changes -
          Assignee Daniel Beck [ danielbeck ] minal silimkar [ minal_silimkar ]
          danielbeck Daniel Beck made changes -
          Assignee minal silimkar [ minal_silimkar ] Daniel Beck [ danielbeck ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 153772 ] JNJira + In-Review [ 194686 ]

            People

            Assignee:
            danielbeck Daniel Beck
            Reporter:
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: