gpt4 book ai didi

android - 适用于Android项目CI的Openshift Jenkins设置

转载 作者:行者123 更新时间:2023-12-03 05:15:27 25 4
gpt4 key购买 nike

我有3个档位的免费Openshift帐户,已按照Jenkins服务器建立档位,并按照此处说明的步骤将DIY盒带配置为从属节点:

https://developer.jboss.org/people/lkrzyzanek/blog/2012/12/12/jenkins-on-openshift-with-own-slaves?_sscc=t

主节点和从节点之间的ssh连接工作正常。我已经按照此处发布的说明解决了slave.jar上的 Jenkins 缓存问题:

Change user.home system property

我已经在slave上上传了仅下载了构建工具的android-sdk。此简化版本的sdk,可在我的本地计算机上成功构建android-studio项目,并生成相应的APK。

当我创建一个新的指向git存储库的jenkins作业时,将下载代码并启动./gradlew assembleRelease。在gradle到达任务app:preDexRelease之前,所有步骤都可以正常工作,jenkins变得不可用。

我也尝试过手动运行gradlew对从属计算机执行ssh,尽管禁用了ssh超时(未设置TMOUT),但在达到构建步骤preDexRelease时,ssh session 突然断开。 Gradle日志(--debug)不能提供任何提示。

有没有人经历过类似的行为?

Gradle调试:

...
processing android/support/annotation/Keep.class...
processing android/support/annotation/FractionRes.class...
processing android/support/annotation/DimenRes.class...
processing android/support/annotation/BoolRes.class...
processing android/support/annotation/BinderThread.class...
processing android/support/annotation/CallSuper.class...
processing android/support/annotation/MenuRes.class...
processing android/support/annotation/RequiresPermission$Read.class...
processing android/support/annotation/AnimRes.class...
processing android/support/annotation/Nullable.class...
processing android/support/annotation/ColorRes.class...
processing android/support/annotation/RequiresPermission$Write.class...
processing android/support/annotation/CheckResult.class...
processing android/support/annotation/InterpolatorRes.class...
processing android/support/annotation/LayoutRes.class...
processing android/support/annotation/TransitionRes.class...
processing android/support/annotation/IntRange.class...
processing android/support/annotation/RequiresPermission.class...
processing android/support/annotation/Size.class...
processing android/support/annotation/StringDef.class...
processing android/support/annotation/NonNull.class...
processing android/support/annotation/MainThread.class...
processing android/support/annotation/ArrayRes.class...
processing android/support/annotation/ColorInt.class...
processing android/support/annotation/IntegerRes.class...
processing android/support/annotation/StyleRes.class...
processing android/support/annotation/VisibleForTesting.class...
writing classes.dex; size 6576...

> Building 85% > :app:preDexReleaseConnection to xxxxxxxx.rhcloud.com closed by remote host.
Connection to xxxxxxxx.rhcloud.com closed.

作为测试,我使用一个简单的 Activity Android Studio项目。

感谢您的帮助和建议。

最佳答案

请注意,我已经打开了包含Android SDK的Openshift Jenkins墨盒的功能请求,请在此处对其进行投票:https://openshift.uservoice.com/forums/258655-ideas/suggestions/10128225-include-use-of-android-sdk-in-jenkins-catridge

关于android - 适用于Android项目CI的Openshift Jenkins设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32171639/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com