Skip to content

Instantly share code, notes, and snippets.

@gavvvr
Last active September 24, 2023 13:37
Show Gist options
  • Save gavvvr/773ba52e35bb9d7be2e204a5a086240f to your computer and use it in GitHub Desktop.
Save gavvvr/773ba52e35bb9d7be2e204a5a086240f to your computer and use it in GitHub Desktop.
Local Jenkins CI for mac
  1. brew install --ignore-dependencies jenkins-lts (The reson I use --ignore-dependencies is because I do not want JDK brought by brew, because I manage JDKs with SDKMAN. brew says --ignore-dependencies is deprecated, but it still does it's job)
  2. adjust location of java binary at ProgramArguments section in homebrew.mxcl.jenkins-lts.plist located at:
    • /usr/local/opt/jenkins-lts/homebrew.mxcl.jenkins-lts.plist for Intel-based Macs
    • /opt/homebrew/opt/jenkins-lts/homebrew.mxcl.jenkins-lts.plist for Apple Silicon
  3. brew services start jenkins-lts
  4. open http://localhost:8080/
  5. look up the initial password at ~/.jenkins/secrets/initialAdminPassword

Optionally: run JVM with -Dhudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT=true, if you simply work locally and clone using file:// protocol

For reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment