Saturday, January 11, 2020

How to Reset Jenkins Admin Password




To reset the jenkins admin password,You can simply disable the security in the config.xml file.

  • If your jenkins is running on the Linux OS, edit the below file.

vim /var/lib/jenkins/config.xml
Note: you can use you favourite text editor in place Vim

  • Search for the word <useSecurity>true</useSecurity>
and change the word true to false.



       Save The file



  • Restart the Jenkins server.

There are few ways to restart your Jenkins server


To restart Jenkins manually,
(jenkins_url)/safeRestart- Allows all running jobs to complete. New jobs will remain in the queue to run after the restart is complete

(jenkins_url)/restart- Forces a restart without waiting for builds to complete.


$ /etc/init.d/jenkins restart

$ service jenkins restart



  • Now go to the Jenkins portal again and Jenkins will not ask any credentials this time. You navigate to "Manage Jenkins" to set the administrator password again.


  •  Enable the security again by changing settings to <useSecurity>true</useSecurity> and restart the Jenkins again.

DONE

Jenkins Installation in Ubuntu 18.04


INSTALL JENKINS IN UBUNTU SERVER IN EC2 :



  • FIRST INSTALL JDK 8 ON SYSTEM:

$ sudo apt update

$ apt install openjdk-8-jdk


Set JAVA_HOME in  /etc/environment

Add this line JAVA_HOME= “/usr/lib/jvm/java-8-openjdk-amd64/”

or Simply type command export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/

Now check Java home by type

$ echo $JAVA_HOME

  • Add the Jenkins Debian repository.


wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -


Next, add the Jenkins repository to the system with:

sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'


$ sudo apt updatesudo

$ apt install jenkins



Check your jenkins is working or not

Go to the browser and type http://<ip Address of themachine>:8080

Step-by-Step Guide: How to Factory Reset Your iPhone and Restore It to Its Original Settings

  If you want to factory reset your iPhone without a passcode, there are a few different methods you can try: Method 1: Use iTunes Open iTun...