I am trying to do a continuous build with Jenkins and trying to deploy those builds using Jenkins.
I have configured Jenkins free style job to check out code from SVN and Invoke top level maven target with pre-integration-test -P<environment>
.
This job is building and deploying my SOA composites onto weblogic successfully. But I don't want to deploy my every build. I want to restrict my deployments onto the server.
If I configure Jenkins job to build my SOA with mvn clean package
goal. How I can trigger my other Jenkins job to deploy the previously generated artifacts. We don't have any nexus/artifactory in our infrastructure. We store our builds in our Jenkins workspace.
I have configured two Jenkins jobs, one which builds the application using mvn clean package
which will trigger other Jenkins job using mvn pre-integration-test
. But here in my second job, the pre-integration-test is again starting from validating phase producing again my sar. Is there any plugin which deploys my sar without recompiling/rebuilding it again.
Please help me to solve this problem.
Here is my POM:
http://maven.apache.org/maven-v4_0_0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.oracle.servicebus</groupId>
<artifactId>sbar-project-common</artifactId>
<version>12.2.1-1-0</version>
<relativePath></relativePath>
</parent>
<groupId>ServiceBusApplication1</groupId>
<artifactId>SBProject</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>sbar</packaging>
<description/>
<build>
<plugins>
<plugin>
<groupId>com.oracle.servicebus-plugin</groupId>
<artifactId>oracle-servicebus-plugin</artifactId>
<version>12.2.1-1-0</version>
<configuration>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>Dev</id>
<properties>
<oracleServerUrl>http://serverDev.com:7001</oracleServerUrl>
<oracleUsername>username</oracleUsername>
<oraclePassword>password</oraclePassword>
<oracleHome>path to oracle home</oracleHome>
<customization>path to configuration file</customization>
</properties>
</profile>
</profiles>