0
点赞
收藏
分享

微信扫一扫

在Mac上使用Jenkins一键打包IPA并上传蒲公英

老王420 2022-09-13 阅读 43


1. 安装

安装命令

brew install

➜  ~ brew install jenkins
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/services).
No changes to formulae.

==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/openjdk%401
######################################################################## 100.0%
==> Downloading http://mirrors.jenkins.io/war/2.268/jenkins.war
==> Downloading from http://ftp-chi.osuosl.org/pub/jenkins/war/2.268/jenkins.war
######################################################################## 100.0%
==> Installing dependencies for jenkins: openjdk@11
==> Installing jenkins dependency: openjdk@11
==> Pouring openjdk@11-11.0.9.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.9: 653 files, 297.2MB
==> Installing jenkins
==> /usr/local/opt/openjdk@11/bin/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.268: 7 files, 70.8MB, built in 12 seconds
==> 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

常用命令:

Install the latest Weekly version: ​​brew install jenkins​​​ Install a specific Weekly version:​​brew install jenkins@YOUR_VERSION​​ Start the Jenkins service: ​​brew services start jenkins​​ Restart the Jenkins service:​​brew services restart jenkins​​ Update the Jenkins version:​​brew upgrade jenkins​

2. 运行

brew services start jenkins

➜  ~ brew services start jenkins
==> Successfully started `jenkins` (label: homebrew.mxcl.jenkins)

打开地址 ​​http://localhost:8080​​

在Mac上使用Jenkins一键打包IPA并上传蒲公英_jenkins


管理员密码设置为 12345678

3. 查看本地日志

​​Viewing logs​​​ Logs on the system
When running jenkins.war manually with java -jar jenkins.war, all logging information by default is output to standard out. Many Jenkins native packages modify this behavior to ensure logging information is output in a more conventional location for the platform.

Linux

By default logs should be made available in /var/log/jenkins/jenkins.log, unless customized in /etc/default/jenkins (for *.deb) or via /etc/sysconfig/jenkins (for */rpm)

Windows

By default logs should be at %JENKINS_HOME%/jenkins.out and %JENKINS_HOME%/jenkins.err, unless customized in %JENKINS_HOME%/jenkins.xml

Mac OS X

Log files should be at ​​/var/log/jenkins/jenkins.log​​​, unless customized in ​​org.jenkins-ci.plist​​.

4. 使用默认操作

在Mac上使用Jenkins一键打包IPA并上传蒲公英_jar_02


在Mac上使用Jenkins一键打包IPA并上传蒲公英_jenkins_03


在Mac上使用Jenkins一键打包IPA并上传蒲公英_jar_04


在Mac上使用Jenkins一键打包IPA并上传蒲公英_linux_05

5. 配置插件

在Mac上使用Jenkins一键打包IPA并上传蒲公英_java_06


在Mac上使用Jenkins一键打包IPA并上传蒲公英_java_07


在Mac上使用Jenkins一键打包IPA并上传蒲公英_jenkins_08

6. 创建任务

在Mac上使用Jenkins一键打包IPA并上传蒲公英_linux_09


在Mac上使用Jenkins一键打包IPA并上传蒲公英_jenkins_10


在Mac上使用Jenkins一键打包IPA并上传蒲公英_linux_11


在Mac上使用Jenkins一键打包IPA并上传蒲公英_jar_12


在Mac上使用Jenkins一键打包IPA并上传蒲公英_jar_13


在Mac上使用Jenkins一键打包IPA并上传蒲公英_java_14


在Mac上使用Jenkins一键打包IPA并上传蒲公英_jar_15

export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

pod install

在Mac上使用Jenkins一键打包IPA并上传蒲公英_jenkins_16


举报

相关推荐

0 条评论