詹金斯集成 xcode - shell 命令
jenkins integration xcode - shell command
我已经将我的 xcode 项目与 jenkin.I 集成在一起 xcode 构建成功,创建了 ipa 但最后 "Build step 'Execute shell' marked build as failure" & 无法连接到 SMTP 主机发送邮件。完成:失败。
我的 Shell 脚本是 xcodebuild -target EmailTests -configuration Debug -sdk iphonesimulator | ./ocunit2junit.rb SMTP 详细信息从 Mac Mail--> Preferences 复制到 Jenkins 配置。
请帮我解决这个问题。
尝试运行使用你的命令:
xcodebuild -target EmailTests -configuration Debug -sdk iphonesimulator | ./ocunit2junit.rb
来自终端中的 shell。如果你在 Jenkins 之外 运行 时出现同样的错误,你就不用再担心 Jenkins 了。如果可行,请尝试弄清楚这两种环境有何不同。
也可以尝试从您运行进行测试的同一台机器上手动连接到 smtp 服务器。首先使用 nslookup
查找 smpt 服务器,然后使用 telnet
连接到 tcp 端口 25。以下是检查邮件连接的详细信息:https://www.port25.com/how-to-check-an-smtp-connection-with-a-manual-telnet-session-2/
似乎更像是 Jenkins 配置问题。
转到管理 Jenkins -> 配置系统并应用更改,如屏幕截图所示。
我已经将我的 xcode 项目与 jenkin.I 集成在一起 xcode 构建成功,创建了 ipa 但最后 "Build step 'Execute shell' marked build as failure" & 无法连接到 SMTP 主机发送邮件。完成:失败。
我的 Shell 脚本是 xcodebuild -target EmailTests -configuration Debug -sdk iphonesimulator | ./ocunit2junit.rb SMTP 详细信息从 Mac Mail--> Preferences 复制到 Jenkins 配置。
请帮我解决这个问题。
尝试运行使用你的命令:
xcodebuild -target EmailTests -configuration Debug -sdk iphonesimulator | ./ocunit2junit.rb
来自终端中的 shell。如果你在 Jenkins 之外 运行 时出现同样的错误,你就不用再担心 Jenkins 了。如果可行,请尝试弄清楚这两种环境有何不同。
也可以尝试从您运行进行测试的同一台机器上手动连接到 smtp 服务器。首先使用 nslookup
查找 smpt 服务器,然后使用 telnet
连接到 tcp 端口 25。以下是检查邮件连接的详细信息:https://www.port25.com/how-to-check-an-smtp-connection-with-a-manual-telnet-session-2/
似乎更像是 Jenkins 配置问题。
转到管理 Jenkins -> 配置系统并应用更改,如屏幕截图所示。