如何从CloudBees部署到私有Maven存储库? [英] How do I deploy to private Maven repo from CloudBees?

查看:124
本文介绍了如何从CloudBees部署到私有Maven存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'd like to use CloudBees for my CI environment, but I'd also like to deploy my Maven artifacts to my existing private Nexus repository. In my current local Hudson setup, I utilize the username/password settings within the .m2/settings.xml file as follows:

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

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

How/where can I configure these credentials on CloudBees?

推荐答案

您可以将它们放在您的私有webdav文件存储中:

You can put these in your private webdav filestore: http://wiki.cloudbees.com/bin/view/DEV/Sharing+Files+with+Build+Executors

然后,只需通过传递'-s'选项指向Maven,或者单击Maven构建的高级"部分,然后在替代设置文件"字段中添加路径.

Then, just point Maven at this by passing the '-s' option, or clicked the "Advanced" section of your Maven build and add the path in the "Alternate settings file" field.

这篇关于如何从CloudBees部署到私有Maven存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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