Skip to content

Instantly share code, notes, and snippets.

View gavvvr's full-sized avatar
🥷
Taming complexity

Kirill Gavrilov gavvvr

🥷
Taming complexity
View GitHub Profile
@gavvvr
gavvvr / install-jenkins-on-mac.md
Last active September 24, 2023 13:37
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