通过jenkins将.ipa上传到testflight [英] Uploading .ipa to testflight via jenkins

查看:372
本文介绍了通过jenkins将.ipa上传到testflight的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jenkins进行自动构建和自动部署.到目前为止,我已经成功实现了生成生成(即.ipa文件).我还实现了diawi链接生成.

I am using jenkins for auto build and auto deploy. Till now I successfully achieved build generation (i.e .ipa file). I also achieved diawi link generation.

现在,我想通过jenkins将.ipa上传到testflight.现在,我正在使用此脚本进行升级,

Now I want to upload .ipa to testflight via jenkins. Right now I am using this script for uplaod,

 ipa distribute:itunesconnect \
 —-file "${WORKSPACE}/build/upload.ipa" \
 —-account yourappleid@gmail.com \
 -p Y0urPa55w0rd \
 —-apple-id 1234567890 —-upload —-verbose

但是詹金斯给了我下面的错误,

but jenkins gives me error given below,

*** Error: Unable to validate your application. Unable to read password from stdin.

此脚本有什么问题,或者将使用任何其他脚本进行上传.因此,请任何人都可以帮助我通过jenkins将.ipa上传到testflight.

What's wrong in this script OR any other script will be used for upload. So, please anyone can help me to upload an .ipa to testflight via jenkins.

推荐答案

我完成了.通过jenkins成功将.ipa上传到testflight.

I am done it. Successfully upload an .ipa to testflight via jenkins.

ALTOOL 是一个命令行工具,可帮助您将.ipa上载到testflight.您只需要转到xcode的 altool (xcode内置工具)路径,然后触发将.ipa上载到testflight的命令即可.

ALTOOL is a command line tool that helps you to upload an .ipa to testflight. You just need to go to the path of altool (xcode inbuilt tool) of your xcode, and then fire a command for uploading an .ipa to testflight.

下面是您需要在构建阶段执行清单 l中编写的脚本/命令.

Below is the script/command that you need to write in Execute Shell of Build phase.

cd  /Applications/Xcode\ 8.3.3/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support/

./altool --upload-app -f /Users/Shared/Jenkins/Home/workspace/yourWorkspace-name/build/artifacts/yourIPA.ipa -u itunesconnectUserName -p itunesconnectPassword

这篇关于通过jenkins将.ipa上传到testflight的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆