How do I deploy to private Maven repo from CloudBees?

喜夏-厌秋 提交于 2019-12-06 10:26:28

问题


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>
...

How/where can I configure these credentials on CloudBees?


回答1:


You can put these in your private webdav filestore: 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.




回答2:


You should follow this step by step guide:

http://developer.cloudbees.com/bin/view/DEV/Accessing+under+an+external+Maven+repository



来源:https://stackoverflow.com/questions/12383226/how-do-i-deploy-to-private-maven-repo-from-cloudbees

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!