一:搭建Jenkins 界面?
1: 通过HomeBrew 命令来操作:
-
01: 在mac 终端搜索jenkins
brew search jenkins
java -version: 查看java版本.
***搜索结果虽然出现了很多:如jenkins、jenkins-job-builder、jenkins-lts、caskroom/cask/jenkins-menu、但是我们只需要安装jenkins即可。***
LSCNM598029:~ qxu7859$ brew search jenkins
==> Formulae
jenkins ✔ jenkins-job-builder jenkins-lts
==> Casks
jenkins-menu
If you meant "jenkins" specifically:
It was migrated from homebrew/cask to homebrew/core.
-
02: 安装java8
1- brew cask install caskroom/versions/java8
2- 手动安装方式2
-
03: 安装jenkins
安装命令: brew install jenkins
更新jenkins版本命令:brew upgrade jenkins
==> Downloading from http://mirrors.shu.edu.cn/jenkins/war/2.118/jenkins.war
######################################################################## 100.0%
==> jar xvf jenkins.war
==> Caveats
Note: When using launchctl the port will be 8080.
To have launchd start jenkins now and restart at login:
brew services start jenkins
Or, if you don't want/need a background service you can just run:
jenkins
==> Summary
🍺 /usr/local/Cellar/jenkins/2.118: 7 files, 74.4MB, built in 1 minute 48 seconds
04: 命令启动jenkins
brew services start jenkins
启动结束以后、需要打开网址:http://localhost:8080就能看到界面了
1: 第一解锁:
2: 安装推荐插件
3: 注册管理员用户
4: 实例配置: 默认即可
5: 登陆jenkins界面
6: 登陆进去、第一个首页