Default credentials for Jenkins after installation

前端 未结 8 1655
夕颜
夕颜 2021-01-11 11:02

I have downloaded Jenkins on Windows10. When i try to access jenkins, it is asking for username and password. I have read the threads on the same issue. But I do not find a

相关标签:
8条回答
  • 2021-01-11 11:19

    After Installation of Jenkins 2.Y.Z, I would suggest you to simply restart your OS.

    my OS is Windows 8.1, and as after I restarted Jenkins automatically builds it installation environment, and you can see many directories and files available or appeared which were not available instantly after installation.

    Now, Open Jenkins Dashboard path in web browser hostname:portnumber

    for beginners it is like localhost:8080

    it will ask you the password.

    So, open the file initialAdminPassword in text editor or viewer located in:

    C:\Program Files (x86)\Jenkins\secrets\
    

    copy the 32 chars length password, and paste it to the Jenkins Dashboard.

    Later you can install the plugins default or in custom choose mode.

    Hope this would help many one.

    0 讨论(0)
  • 2021-01-11 11:19

    same issue got resolved after restart, i was able to see folders and jenkin also started responding.

    0 讨论(0)
  • 2021-01-11 11:24

    open the door

    sudo chmod -R 777 secrets

    peek inside

    vi secrets/initialAdminPassword

    close the door

    sudo chmod -R 700 secrets

    0 讨论(0)
  • 2021-01-11 11:26

    If you're using Jenkins inside of a Docker container, like I am, the following commands might be useful.

    docker exec -it ${jenkins_container_name} \
        cat /var/jenkins_home/secrets/initialAdminPassword 
    # or if it was the last container you ran
    docker exec -it $(docker container ls -l --format "{{.Names}}") \
        cat /var/jenkins_home/secrets/initialAdminPassword
    
    0 讨论(0)
  • 2021-01-11 11:31

    1) open terminal

    2) type docker ps -a

    then you will find the list of containers

    3) copy your container id where your Jenkins is running

    4) type docker logs your_container_id

    then you will see

    Jenkins initial setup is required. An admin user has been created and a password generated. Please use the following password to proceed to installation:

    741bc43e03b54cd9be183d97947c7369

    This may also be found at: /var/jenkins_home/secrets/initialAdminPassword

    0 讨论(0)
  • 2021-01-11 11:33

    Username is admin. Password should be located in:

    $JENKINS_HOME/secrets/initialAdminPassword
    

    You can view the password using:

    cat /var/lib/jenkins/secrets/initialAdminPassword
    

    or

    cat $JENKINS_HOME/secrets/initialAdminPassword
    
    0 讨论(0)
提交回复
热议问题