-1

I am setting up a job in hudson to build maven based mule application on SVN , uploading to artifactory and then deploy it on cloudhub.

I am able to build project and upload it to artifactory but the problem is how to deploy it on cloudhub after that.

I have groovy post build plugin but not sure what script to write in it to proceed.

Is there anyone who could give me some pointers to proceed?? Thanks in advance

4

2 回答 2

0

您应该使用mule-maven-plugin,这是当前支持通过 Maven 部署到 CloudHub 的方式。这是一个示例插件配置:

<plugin>
<groupId>org.mule.tools.maven</groupId>
<artifactId>mule-maven-plugin</artifactId>
<version>2.1.1</version>
<configuration>
    <deploymentType>cloudhub</deploymentType>
    <muleVersion>3.7.0</muleVersion>               <!-- This is the runtime version as it appears on the CloudHub interface -->
    <username>myUsername</username>
    <password>myPassword</password>
    <environment>Production</environment>
</configuration>
<executions>
    <execution>
        <id>deploy</id>
        <phase>deploy</phase>
        <goals>
            <goal>deploy</goal>
        </goals>
    </execution>
</executions>

请记住将其添加到您的 settings.xml 中,以便 Maven 可以找到插件:

<pluginRepositories>
    <pluginRepository>
        <id>mule-public</id>
        <url>https://repository.mulesoft.org/nexus/content/repositories/releases</url>
    </pluginRepository>
</pluginRepositories>
于 2016-08-22T14:39:50.633 回答
0

您可以使用 maven cloudhub-maven-plugin。请参阅cloudhub-maven-plugin 的详细信息

希望这可以帮助。

于 2016-08-22T09:43:09.747 回答