DevOps - Program 4 Installation of Jenkins Download the ‘Jenkinsʼ Executeable from - “ https://www.jenkins.io/download/ˮ Windows - .msi) Run the ‘jenkins.msiʼ file Click on ‘Nextʼ Click on ‘Nextʼ DevOps Program 4 1 Select ‘Run Service as LocalSystemʼ, Click on ‘Nextʼ Enter Port Number as ‘8081ʼ and Test Port To Check for any Port Conflicts), Click on ‘Nextʼ DevOps Program 4 2 If we cannot see any folder ‘Javaʼ, We will have to install Java JDK Should not be less than JDK 21 URL For Download: https://www.oracle.com/in/java/technologies/downloads/#jdk21- windows Download the x64 MSI Installer Run the ‘msiʼ file for Java JDK (i) Click on ‘Nextʼ DevOps Program 4 3 (ii) Take note of the ‘Installation Pathʼ as highlighted and Click on ‘Nextʼ If a popup appears to ‘ Make Change in the Hard-Driveʼ , Click on ‘Yesʼ (iii) JDK Installed Successfully! Click on ‘Closeʼ) DevOps Program 4 4 Make sure to add the Path of the Java JDK for Jenkins — as highlighted in Step-7 (ii) Click on ‘Javaʼ in ‘C\Program Files\ʼ, and then Click on ‘jdk-21ʼ Click on ‘Okʼ, then Click on ‘Nextʼ DevOps Program 4 5 Click on ‘Nextʼ Click on ‘Installʼ DevOps Program 4 6 If a popup appears to ‘ Make Change in the Hard-Driveʼ , Click on ‘Yesʼ Installation Successful! Click on ‘Finishʼ) Admin Account Creation in Jenkins Web-UI DevOps Program 4 7 Type ‘ http://localhost:8081ʼ, It will ask us to Unlock Jenkins using a Temporary passwords present in the Specified Folder. Copy the path, Press ‘Win Rʼ key notepad.exe C \ProgramData\Jenkins\.jenkins\secrets\initialAdminPassword Click on ‘Okʼ Copy the password from ‘Notepadʼ DevOps Program 4 8 Paste the password in the Web-UI and Click on ‘Continueʼ Click on ‘Install Suggested Pluginsʼ Box This might take a while) DevOps Program 4 9 Plugin Installation in Progress DevOps Program 4 10 Creating ‘adminʼ credentials, let the Password be ‘adminʼ as well ( X Not for Production! DevOps Program 4 11 Let the Jenkins URL be the Same as ‘Defaultʼ DevOps Program 4 12 Jenkins is ready, Click on ‘Start using Jenkinsʼ DevOps Program 4 13 Install the ‘SonarQube Scannerʼ Plugin in Jenkins Click on ‘Manage Jenkinsʼ DevOps Program 4 14 Click on ‘Pluginsʼ DevOps Program 4 15 Click on ‘Available Jenkinsʼ, Search for ‘SonarQube Scannerʼ Click on the Checkbox and Install) DevOps Program 4 16 Once the Plugins have the ‘Successʼ Tag Click on ‘Restartʼ Checkbox DevOps Program 4 17 Login back into Jenkins Username: admin, Password: admin) Installation of SonarQube Server Download the ‘SonarQube Serverʼ Executeable from: “ https://www.sonarsource.com/products/sonarqube/downloads/ˮ Under “Community Buildˮ > “Download for freeˮ > “Click on Download Onlyˮ Windows - .zip folder) DevOps Program 4 18 Unzip the ‘sonarqube-<version>.zipʼ file to Folder. Go to Specified Path, sonarqube-25.5.0.107428/ └── sonarqube-25.5.0.107428/ └── bin/ └── windows-x8664/ Click on ‘StartSonar.batʼ file, This will execute the SonarQube Server A popup of “Windows Protected your PCˮ will appear, Click on “More infoˮ, Click on “Run anywayˮ DevOps Program 4 19 Click on “Allow accessˮ in the Windows Security Alert Popup Go to “ http://localhost:9000ˮ Login Page will appear for SonarQube Server) DevOps Program 4 20