Mac下搭建jenkins&fastlane,2021实战版本~

homebrew 安装简介非常的全包括M1

 https://brew.idayer.com/guide/start/

brew 安装代码

➜  iOS /bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
最后看到了这个 记得敲回车 最后看到这个successful就完美了
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- 🎉 恭喜,安装成功!运行 `brew help` 开始体验吧
- 更多文档:
    https://docs.brew.sh
    https://brew.idayer.com

查看brew版本  更新brew 查看java版本

➜  iOS brew -v 
Homebrew 3.1.4
Homebrew/homebrew-core (git revision a469d3bb2a; last commit 2021-04-29)
➜  iOS brew update
Already up-to-date.
➜  iOS java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

配置jenkins

安装homebrew好了之后   

https://www.cnblogs.com/zhouxihi/p/10290869.html【安装Jenkins, 安装时间较长】

开始往下安装jenkins

安装代码以及开启jenkins服务

➜  iOS brew install jenkins
==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/11/manifests/11.0.10
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/11/blobs/sha256:6dd0a8c323dd861d68d43b6cce0f860225c86ebc6dd583403834b306fbaf1456
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:6dd0a8c323dd861d68d43b6cce0f860225c86ebc6dd583403834b306fbaf1456
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/jenkins/manifests/2.290
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/jenkins/blobs/sha256:fa1898822eeb700ec20b33f7b6e14c74c91de6d9421a7d0f6e4c78012978d4d3
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:fa1898822eeb700ec20b33f7b6e14c74c91de6d9421a7d0f6e4c78012978d4d3
######################################################################## 100.0%
==> Installing dependencies for jenkins: openjdk@11
==> Installing jenkins dependency: openjdk@11
==> Pouring openjdk@11--11.0.10.catalina.bottle.tar.gz
==> Caveats
For the system Java wrappers to find this JDK, symlink it with
  sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk

openjdk@11 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have openjdk@11 first in your PATH, run:
  echo 'export PATH="/usr/local/opt/openjdk@11/bin:$PATH"' >> ~/.zshrc

For compilers to find openjdk@11 you may need to set:
  export CPPFLAGS="-I/usr/local/opt/openjdk@11/include"

==> Summary
🍺  /usr/local/Cellar/openjdk@11/11.0.10: 654 files, 297.3MB
==> Installing jenkins
==> Pouring jenkins--2.290.all.bottle.tar.gz
==> 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.290: 7 files, 74.1MB
==> Caveats
==> openjdk@11
For the system Java wrappers to find this JDK, symlink it with
  sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk

openjdk@11 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have openjdk@11 first in your PATH, run:
  echo 'export PATH="/usr/local/opt/openjdk@11/bin:$PATH"' >> ~/.zshrc

For compilers to find openjdk@11 you may need to set:
  export CPPFLAGS="-I/usr/local/opt/openjdk@11/include"

==> jenkins
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
➜  iOS brew services start jenkins
==> Tapping homebrew/services
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services'...
remote: Enumerating objects: 1165, done.
remote: Counting objects: 100% (44/44), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 1165 (delta 15), reused 12 (delta 9), pack-reused 1121
Receiving objects: 100% (1165/1165), 339.03 KiB | 423.00 KiB/s, done.
Resolving deltas: 100% (491/491), done.
Tapped 1 command (42 files, 429.6KB).
==> Successfully started `jenkins` (label: homebrew.mxcl.jenkins)

查看密码的指令并不好用,所以命令行  

ls -a 查到 .jenkins 再找到具体文件

.jenkins/secrets/initialAdminPassword

找到这个文件,vim 把密码复制了出来。

新手配置一直安装,设置用户,【进入页面啦】

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值