For more details plese visit - https://pkg.jenkins.io/debian-stable/
Open terminal and execute below command
-
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null
-
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null
-
sudo apt-get update
-
sudo apt-get install fontconfig openjdk-11-jre
-
sudo apt-get install jenkins
- sudo systemctl enable jenkins
- sudo systemctl start jenkins
- sudo systemctl status jenkins
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Follow below steps to upgrade Jenkins instance to latest
- sudo /etc/init.d/jenkins stop
- cd /usr/share/jenkins
- sudo mv jenkins.war jenkins.war.old
- sudo /etc/init.d/jenkins start
- sudo apt-get update
- sudo apt-get install openjdk-19-jdk
- java -version
Download maven zip file from below URL
- mkdir tools
- cd tools
- wget https://dlcdn.apache.org/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.zip
- unzip apache-maven-3.9.4-bin.zip
- git clone
- git branch
- git checkout
- git checkout -b
- git push -u origin
- git push
- git pull
- git commit -m "Comment here"
- git add filename
- git rm --cached filename
- git reset --hard
- docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube