Service Virtualization

 View Only
  • 1.  Steps to Integrate DevTest with jenkins using Maven

    Posted Nov 09, 2016 06:19 PM

    I want to integrate DevTest with Jenkins. I have see steps to integrate via ANT. Since ANT is not an option in my account. If somebody can provide steps or user guide to Integrate DevTest with jenkins using Maven.



  • 2.  Re: Steps to Integrate DevTest with jenkins using Maven
    Best Answer

    Posted Mar 21, 2017 10:19 AM

    here's an example MAVEN POM to build a devtet extension

     

    1) you will need to add the ca jars to the maven/nexus repo like this

    mvn install:install-file -Dfile=lisa-core-9.5.1.jar -DgroupId=ca.devtest -DartifactId=lisa-core -Dversion=9.5.1 -Dpackaging=jar

    2) once installed into the local maven repo you can call wirte a POM like this

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">


    <modelVersion>4.0.0</modelVersion>

    <description>test project</description>
    <organization>
    <name>customerCorp</name>
    </organization>

    <groupId>com.customerCorp</groupId>
    <artifactId>devtest.svirt.ext</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <name>devtest.svirt.ext</name>
    <url>http://maven.apache.org</url>
    <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <dependencies>
    <dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>3.8.1</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <groupId>ca.devtest</groupId>
    <artifactId>lisa-core</artifactId>
    <version>9.5.1</version>
    <scope>compile</scope>
    </dependency>
    <dependency>
    <groupId>ca.devtest</groupId>
    <artifactId>lisa-virtualize</artifactId>
    <version>9.5.1</version>
    <scope>compile</scope>
    </dependency>
    <dependency>
    <groupId>commons-lang</groupId>
    <artifactId>commons-lang</artifactId>
    <version>2.6</version>
    </dependency>
    <dependency>
    <groupId>ca.devtest</groupId>
    <artifactId>lisa-util</artifactId>
    <version>9.5.1</version>
    </dependency>
    </dependencies>
    <build>
    <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.3</version>
    <configuration>
    <source>1.8</source>
    <target>1.8</target>
    </configuration>
    </plugin>
    </plugins>
    <resources>
    <resource>
    <directory>src/main/resources</directory>
    <filtering>true</filtering>
    </resource>
    <resource>
    <targetPath>com/customerCorp/devtest</targetPath>
    <filtering>false</filtering>
    <directory>${basedir}/src/main/resources</directory>
    <includes>
    <include>**/*.lisaextensions</include>
    </includes>
    </resource>
    <resource>
    <directory>src/main/java</directory>
    <includes>
    <include>**/*.java</include>
    </includes>
    </resource>
    </resources>
    </build>

     

    </project>



  • 3.  Re: Steps to Integrate DevTest with jenkins using Maven

    Posted Mar 21, 2017 01:05 PM

    Thanks. i will try this and will get back to you if any issues.