Jenkins Notes and issues

Quick note on some Jenkins setup.

My setup:

macOS High Sierra  
Version 10.13.1  

Java 8 (jdk

export TOMCAT_HOME=/Users/rommel/tomcat/apache-tomcat-8.0.32  

Maven 3.3.9 (installed via Homebrew)



Version 2.73.3  

Error after installation

Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher  

To resolve:

  • Instructions online may say to set a M2HOME or M3HOME in your .bash_profile. This is not required and is incorrect or outdated. If these variable paths are set, unset them.
  • Instructions online may say to increase permissions to the mvn installation for the jenkins default user. This wasn't the case here.
  • Actual issue is that when you install Maven via homebrew, the actual MAVEN_HOME is using the libexec directory. See above for my setup.

Common commands

Start Jenkins

sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

Stop Jenkins

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist

Restart Jenkins

http://[jenkins-server]/restart or, http://localhost:8080/restart

Shutdown Jenkins

http://[jenkins-server]/exit or, http://localhost:8080/exit

Reload Jenkins

http://[jenkins-server]/reload or, http://localhost:8080/reload