简体   繁体   English

如何从CloudBees部署到私有Maven仓库?

[英]How do I deploy to private Maven repo from CloudBees?

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. 我想将CloudBees用于我的CI环境,但我也想将我的Maven工件部署到我现有的私有Nexus存储库。 In my current local Hudson setup, I utilize the username/password settings within the .m2/settings.xml file as follows: 在我当前的本地Hudson设置中,我使用.m2 / settings.xml文件中的用户名/密码设置,如下所示:

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

How/where can I configure these credentials on CloudBees? 如何/在何处可以在CloudBees上配置这些凭据?

You can put these in your private webdav filestore: http://wiki.cloudbees.com/bin/view/DEV/Sharing+Files+with+Build+Executors 您可以将它们放在私人webdav文件存储中: http ://wiki.cloudbees.com/bin/view/DEV/Sharing+Files+with+Build+Executors

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. 然后,只需通过传递'-s'选项指向Maven,或者单击Maven构建的“高级”部分,然后在“备用设置文件”字段中添加路径。

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

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