Install and configure Jenkins under Mac

1. Installation

1. Jenkins official website https://jenkins.io/ , click Download to download

insert image description here

2. Click the version you want to download

insert image description here

3. Open the Mac command window and enter the command to install:brew install jenkins

insert image description here

4. When I was installing, I reported an error: tar: Error opening archive: Failed to open, the Internet said that it was a problem with the Tsinghua source, and the environment needs to be temporarily modified. Useexport HOMEBREW_BOTTLE_DOMAIN=''

insert image description here

5. Then execute first export HOMEBREW_BOTTLE_DOMAIN=''and then executebrew install jenkins

insert image description here

6. Execute the start jenkins command after installation:

## 启动
brew services start jenkins

7. Browser access jenkins, enter http://localhost:8080

insert image description here

8. You can see that you need to enter a password. The address of the password is shown in the red font path in the above picture. Open the terminal and use the command to view the password:

cat /Users/xxx/.jenkins/secrets/initialAdminPassword

9. Copy the generated password, click OK, and select "Install recommended plug-ins" until the installation is successful

insert image description here
insert image description here

Two, configuration

1. After the installation is complete, enter the user name and password

2. Before creating a new project, you need to configure some content, select Manage Jenkins

insert image description here

2. Select Global Tool Configuration

insert image description here

3. Configure JDK, Git, Maven and other information:

insert image description here

Guess you like

Origin blog.csdn.net/ABCAA1024/article/details/125893565