Jenkins: Quick Start

This post describes how to setup Jenkins on Mac.

I personally like to run it over docker. However, because docker (preview) acts weird sometimes on Mac M1, I decided to do it on Mac directly this time.


1. install

You can use brew to install Jenkins. In my case, I needed to install xcode first.

You may want to check the Java version in advance, as Java 8+ is required.


% java --version

% xcode-select --install

% brew install jenkins


Note:

If you see the error like this, it means you probably need xcode like I did:

---

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Error: An exception occurred within a child process:

  CompilerSelectionError: jenkins cannot be built with any available compilers.

---


2. start

% jenkins


3. initial setup

Access http://localhost:8080/ and follow the instruction.


The unlocking password cab be found at:

% cat ~/.jenkins/secrets/initialAdminPassword


For plugins, I chose "Install suggested plugins". This includes Folders, Git, etc.


Comments

Popular posts from this blog

Minikube Installation for M1 Mac

Selenide: Quick Start

PyCharm: Quick Start