1. Installation
1. Jenkins official website https://jenkins.io/ , click Download to download
2. Click the version you want to download
3. Open the Mac command window and enter the command to install:brew install jenkins
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=''
5. Then execute first export HOMEBREW_BOTTLE_DOMAIN=''
and then executebrew install jenkins
6. Execute the start jenkins command after installation:
## 启动
brew services start jenkins
7. Browser access jenkins, enter http://localhost:8080
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