...
Install the required version of Jenkins.
Download the specific version "jenkins.war" (e.g., version 2.401.1).
Navigate to the download folder using the terminal: cd Downloads
List all items in the Downloads folder: ls
Run Jenkins on a different port since the default port 8080 might be in use: java -jar jenkins.war --httpPort=9090
Search for Maven in the terminal: brew search mvn
Install Maven: brew install mvn
Install JDK. Once Jenkins is running, go to Dashboard > Manage Jenkins > Tools, fill in the JDK details, and set the “Java_home.”
...
Install maven, Once Jenkins is running, go to Dashboard > Manage Jenkins > Tools, fill in the maven details, and set the “maven_home”. refer screenshot.
After Jenkins Installation
...