简体   繁体   English

如何从Appcenter命令行和Jenkins将IPA和APK文件推送到App Center分发

[英]How to push IPA and APK file to App Center Distribute from appcenter command line and Jenkins

How to push an iOS IPA file and Android APK file to App Center Distribute from the command line? 如何从命令行将iOS IPA文件和Android APK文件推送到App Center Distribute? Then I would like to execute appcenter command in Jenkins and upload the ipa and apk file. 然后,我想在Jenkins中执行appcenter命令并上传ipa和apk文件。

I installed the npm appcenter-cli at RHEL $ appcenter -v appcenter version 1.1.14 我在RHEL $ appcenter -v appcenter版本1.1.14上安装了npm appcenter-cli

I am using the following command at unix prompt , I put it my ipa and apk file in /tmp directory and provided full access. 我在UNIX提示符下使用以下命令,将其ipa和apk文件放在/ tmp目录中,并提供了完全访问权限。 $ appcenter login --token e************************88cb4 Logged in as $ appcenter distribute release -f /tmp/20190322P.ipa -g Collaborators --app ***/Pradeep.iOSDev--ios $ appcenter登录--token e ************************ 88cb4作为$ appcenter发行版本登录-f /tmp/20190322P.ipa -g合作者--app *** / Pradeep.iOSDev--ios

but getting below mentioned error Error: failed to create release upload for /tmp/20190322P.ipa 但出现以下提到的错误错误:无法为/tmp/20190322P.ipa创建发行上载

I followed the followings urls How to push IPA to App Center Distribute from Continuous Integration Server https://docs.microsoft.com/en-us/appcenter/cli/ 我遵循以下网址如何将IPA从Continuous Integration Server推送到App Center分发 https://docs.microsoft.com/en-us/appcenter/cli/

Please suggest me how to upload ipa and apk files from appcenter command line and then execute in Jenkins. 请建议我如何从appcenter命令行上传ipa和apk文件,然后在Jenkins中执行。

In my case the issue was that app had Store Release Type. 就我而言,问题是该应用具有商店发行类型。

Changed it to Enterprise and then it worked like a charm. 将其更改为Enterprise ,然后像魅力一样工作。

(to get the idea of the issue cause, after googling didn't help, I have executed appcenter distribute release with --debug flag, and the output contained the explanation). (要了解问题原因,在谷歌搜索无济于事之后,我使用--debug标志执行了appcenter distribute release ,并且输出中包含了说明)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM