jenkins 打包流程

安装jenkins

我们使用Homebrew安装jenkins

安装Homebrew

  1. 首先确认机器有没有安装Homebrew
1
brew -v
  1. 如果未安装,则安装Homebrew
1
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. 安装java环境
1
brew install Caskroom/cask/java

由于现在的java最高版本为12.0,jenkins不支持,所以我们安装一个第三方的java

1
brew cask install homebrew/cask-versions/adoptopenjdk8
  1. 安装jenkins
1
brew install jenkins
  1. 链接文件
1
ln -sfv /usr/local/opt/jenkins/*.plist ~/Library/LaunchAgents
  1. 启动jenkins
1
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
-------------感谢您的阅读-------------
0%