美文网首页
2019-11-25

2019-11-25

作者: craig_wang | 来源:发表于2019-11-25 10:52 被阅读0次

Jenkins macOS 安装升级

标签(空格分隔): 工具


新安装

下载pkg 手动安装 这种安装方式 比较干净 工作空间在User/Shared/Shared)

  • http://mirrors.jenkins.io/osx
  • 直接运行 安装 (会创建一个jenkins的users 在设置删除即可)
  • 无法直接使用jenkins启动 需要 sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

brew 安装 (建议) (工作空间用户目录下.jenkins)<会生成多余的可执行文件>

  • 安装 brew
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • 升级java
    brew cask install java
  • 安装 jenkins
    brew install jenkins
    java -jar /usr/local/Cellar/jenkins/2.205/libexec/jenkins.war --httpPort=8080 /// 在/usr/local/Cellar/jenkins目录下找到war文件 java -jar xxx 执行
  • 查看jenkins版本
    jenkins -v /// 有jenkins快捷命令
  • 扩展操作参考 https://www.jianshu.com/p/5b5306a32fae

升级 主要是升级jenkins.war包

手动安装

1) stop the running instance of jenkins

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist

2) copy the latest version of the jenkins.war to the applications directory

sudo cp 源路径 目标路径

3) Restart jenkins

sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

brew安装

  • brew install jenkins // 新安装 (暂时测试没成功) 需要按照 手动按照替换war重新运行 同时需要修改/usr/local/Cellar/jenkins下的脚本和war

手动替换war包

相关文章

网友评论

      本文标题:2019-11-25

      本文链接:https://www.haomeiwen.com/subject/ffydwctx.html