gpt4 book ai didi

maven - 如何从 CloudBees 部署到私有(private) Maven 存储库?

转载 作者:行者123 更新时间:2023-12-01 10:59:36 25 4
gpt4 key购买 nike

我想将 CloudBees 用于我的 CI 环境,但我也想将我的 Maven Artifact 部署到我现有的私有(private) Nexus 存储库。在我当前的本地 Hudson 设置中,我使用 .m2/settings.xml 文件中的用户名/密码设置,如下所示:

...
<servers>
<server>
<id>my-repository</id>
<username>username</username>
<password>password</password>
</server>
</servers>
...

如何/在哪里可以在 CloudBees 上配置这些凭据?

最佳答案

您可以将它们放入您的私有(private) webdav 文件存储中:http://wiki.cloudbees.com/bin/view/DEV/Sharing+Files+with+Build+Executors

然后,只需通过传递“-s”选项将 Maven 指向此,或单击 Maven 构建的“高级”部分并在“备用设置文件”字段中添加路径。

关于maven - 如何从 CloudBees 部署到私有(private) Maven 存储库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12383226/

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