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

Setup wizard password file should end with a newline

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • Jenkins 2.0 beta

      Now that JENKINS-33599 changed the password to be written to a file, it would be more convenient for copy-pasting if the password was printed on its own line — i.e. the file should end with a (platform-specific) newline character.

      With the 2.0 beta, I saw this:

      chris@rebigulator:~$ cat /tmp/j2beta/secrets/initialAdminPassword
      c84b4a5991db49ef9d431159421107bdchris@rebigulator:~$
      

      The setup wizard unlock field has been changed to a password field, so that also didn't help me in seeing that I had made a mistake in copying the password.

      Here the password is just written straight to the file:
      https://github.com/jenkinsci/jenkins/blob/1735f3c/core/src/main/java/jenkins/install/SetupWizard.java#L64

            danielbeck Daniel Beck
            orrc Christopher Orr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: