Jenkins 功能/目的
- 持续自动构建/测试软件项目(CI/CD 持续集成和持续交付 )
- 监控软件开发流程 快速定位问题 提高开发效率
安装jenkins
- install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
检查是否安装了Homebrew
brew -v
检查是否有任何关于Homebrew的建议
brew doctor
- 安装java
brew install java11
- 安装Jenkins
brew install jenkins-lts
- 启动 Jenkins
brew services start jenkins-lts
打开浏览器并访问 http://localhost:8080
- 重启Jenkins
brew services restart jenkins-lts