How do I deploy to private Maven repo from CloudBe

2019-04-12 08:39发布

问题:

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