Install Jenkins on macOS

print

macOS Installers for Jenkins LTS 

Homebrew Installer 

homebrew

Jenkins can be installed using the Homebrew package manager. Homebrew formula: jenkins-lts This is a package supported by a third party which may be not as frequently updated as packages supported by the Jenkins project directly.Sample commands:

  • Install the latest LTS version: brew install jenkins-lts
  • Install a specific LTS version: brew install jenkins-lts@YOUR_VERSION
  • Start the Jenkins service: brew services start jenkins-lts
  • Restart the Jenkins service: brew services restart jenkins-lts
  • Update the Jenkins version: brew upgrade jenkins-lts

brew install jenkins-lts
Updating Homebrew…
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
acl2 dnsprobe kubie reg
act dosbox-staging ldpl rqlite
apidoc duckscript litecli scw@1
arb eksctl logcli sdns
argo eleventy loki shallow-backup
argocd empty lunchy sheldon
arrayfire fennel lunchy-go silicon
athenacli fetch marked simdjson
bond folderify microplane so
c7n functionalplus naabu solidity
cadence gateway-go nanorc sqlite-utils
cbc git-hooks-go never staticcheck
cgl [email protected] nfpm subfinder
chalk-cli golangci-lint ngs termcolor
charge gostatic notmuch-mutt [email protected]
chart-testing gradle-profiler oci-cli thanos
chrony gulp-cli omake torchvision
clair hy ory-hydra ugrep
coconut jimtcl osi wgcf
copilot jinx osm yj
cortex jsonnet-bundler pandocomatic z.lua
croaring kona pipgrip
cubejs-cli kondo promtail
datasette ksync [email protected]
==> Updated Formulae
Updated 2602 formulae.
==> Renamed Formulae
[email protected] -> elasticsearch@6 [email protected] -> kibana@6
==> Deleted Formulae
cargo-completion [email protected] python wpscan
cryptopp i386-elf-grub sflowtool
[email protected] [email protected] tomee-jax-rs

==> Downloading https://homebrew.bintray.com/bottles/openjdk%4011-11.0.8.catalin
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/5cf17a69c7f88b8f72195

################################################################## 100.0%

==> Downloading http://mirrors.jenkins.io/war-stable/2.235.5/jenkins.war
==> Downloading from http://ftp-chi.osuosl.org/pub/jenkins/war-stable/2.235.5/je

################################################################## 100.0%

==> Installing dependencies for jenkins-lts: openjdk@11
==> Installing jenkins-lts dependency: openjdk@11
==> Pouring [email protected]
==> Caveats
For the system Java wrappers to find this JDK, symlink it with
sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk

openjdk@11 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have openjdk@11 first in your PATH run:
echo ‘export PATH=”/usr/local/opt/openjdk@11/bin:$PATH”‘ >> ~/.zshrc

For compilers to find openjdk@11 you may need to set:
export CPPFLAGS=”-I/usr/local/opt/openjdk@11/include”

==> Summary
� /usr/local/Cellar/openjdk@11/11.0.8: 650 files, 295.3MB
==> Installing jenkins-lts
==> /usr/local/opt/openjdk@11/bin/jar xvf jenkins.war
==> Caveats
Note: When using launchctl the port will be 8080.

To have launchd start jenkins-lts now and restart at login:
brew services start jenkins-lts
Or, if you don’t want/need a background service you can just run:
jenkins-lts
==> Summary
� /usr/local/Cellar/jenkins-lts/2.235.5: 7 files, 66.4MB, built in 2 seconds
==> brew cleanup has not been run in 30 days, running now…
Removing: /Users/nikolaosagas/Library/Caches/Homebrew/node–14.5.0.catalina.bottle.tar.gz… (16.4MB)
Removing: /Users/nikolaosagas/Library/Logs/Homebrew/icu4c… (64B)
Removing: /Users/nikolaosagas/Library/Logs/Homebrew/yarn… (100B)
Removing: /Users/nikolaosagas/Library/Logs/Homebrew/node… (64B)
Pruned 1 symbolic links from /usr/local
==> Caveats
==> openjdk@11
For the system Java wrappers to find this JDK, symlink it with
sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk

openjdk@11 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have openjdk@11 first in your PATH run:
echo ‘export PATH=”/usr/local/opt/openjdk@11/bin:$PATH”‘ >> ~/.zshrc

For compilers to find openjdk@11 you may need to set:
export CPPFLAGS=”-I/usr/local/opt/openjdk@11/include”

==> jenkins-lts
Note: When using launchctl the port will be 8080.

To have launchd start jenkins-lts now and restart at login:
brew services start jenkins-lts
Or, if you don’t want/need a background service you can just run:
jenkins-lts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.