如何配置jenkins上传构建工件到nexus?

问题描述 投票:0回答:2

我有建立ios和android应用程序的jenkins工作,我希望jenkins在构建完成后将这些工件上传到nexus。有什么方法可以做到吗?谢谢

jenkins build continuous-integration nexus
2个回答
0
投票

如果您使用Maven或Gradle或其他任何东西构建应用程序(尤其是Android的应用程序),则可以使用简单的mvn部署或gradle uploadArchives。如果您使用这些工具之一构建ios应用程序,则同样适用。

在大多数其他情况下,您始终可以通过REST API进行正常上传。

Maven和Gradle设置的示例在eval guidethe examples to the Nexus book中。


0
投票

使用Nexus Artifact Uploader插件,并设置一个新作业,在其中设置构建步骤以从另一个项目复制工件,以及将工件上载到Nexus的步骤

© www.soinside.com 2019 - 2024. All rights reserved.