Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jenkins installation doc #360

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up node
uses: actions/setup-node@v2-beta
with:
node-version: '13'
node-version: '14'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down
103 changes: 103 additions & 0 deletions Jenkins/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
Jenkins
=======

Jenkins, an open-source automation server, is a powerful tool for continuous
integration and delivery. While countless resources exist on this topic, we
will explore unique insights and uncover hidden gems to make your installation
journey smooth and hassle-free.

Prerequisites
-------------

To install Jenkins on your machine, ensure that you have the following prerequisites:

* Homebrew installed

* Java Development Kit (JDK) installed

* Administrative access to your machine

Steps to Install Jenkins on Your Machine
----------------------------------------

* Install Jenkins using Homebrew by running the following command:

```shell
brew install jenkins-lts
```

The "lts" flag ensures that the long-term support version of Jenkins is installed.

* If you want to access your Jenkins server from anywhere,

not just your local machine, you need to modify the Jenkins configuration file.

Open the file using the following command:

```shell
sudo vi /usr/local/opt/jenkins-lts/homebrew.mxcl.jenkins-lts.plist
```

* In the file, locate the line:

```shell
<string>--httpListenAddress=127.0.0.1</string>
```

Replace it with:

```shell
<string>--httpListenAddress=0.0.0.0</string>
```

This change allows Jenkins to listen on all available network interfaces.

* Start the Jenkins server using the following command:

```shell
brew services start jenkins-lts
```

Jenkins will now start running as a background service on your machine.

* By default, Jenkins uses port 8080. If you want to change the port, open

the Jenkins configuration file again:

```shell
sudo vi /usr/local/opt/jenkins-lts/homebrew.mxcl.jenkins-lts.plistg
```

Locate the line:

```shell
--httpPort=8080
```

Change `8080` to the desired port number.

* To access Jenkins, open a web browser and enter the following URL:

```plaintext
http://localhost:8080
```

If you changed the port number in the previous step, replace `8080` with the
new port number.

* On the Jenkins setup wizard page, you need to unlock Jenkins. To obtain the

initial admin password, navigate to the following path in your terminal:

```shell
sudo cat /Users/Shared/Jenkins/Home/secrets/initialAdminPassword
```

Copy the password and paste it into the setup wizard.

* Follow the on-screen instructions to complete the installation and set

up your Jenkins instance.

Get ready to unleash the power of Jenkins on your macOS machine
---------------------------------------------------------------
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* [Packages 2/2](SublimeText/Plugins.md)
* [Sublime Linter](SublimeText/SublimeLinter.md)
* [Visual Studio Code](VisualStudioCode/README.md)
* [Jenkins](Jenkins/README.md)
* [JetBrains IDEs](JetBrainsIDEs/README.md)
* [PostgreSQL](PostgreSQL/README.md)
* [Python](Python/README.md)
Expand Down