SetupCloudBess Jenkins and execute the local Script

 

  • Create a maven project with all the required dependencies and plugin
             
 Pom.xml for maven projects

<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <groupId>docker</groupId>

  <artifactId>ExecutionOnJenkins</artifactId>

  <version>0.0.1-SNAPSHOT</version>

    <properties>

        <!-- https://maven.apache.org/general.html#encoding-warning -->

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <maven.compiler.source>1.8</maven.compiler.source>

        <maven.compiler.target>1.8</maven.compiler.target>

    </properties>

         <build>

         <finalName>container-test</finalName>

           <sourceDirectory>src</sourceDirectory>

              <plugins>

                   <plugin>

                     <artifactId>maven-compiler-plugin</artifactId>

             <version>3.1</version>

             <configuration>

                <source>1.8</source>

                <target>1.8</target>

             </configuration>

             </plugin>

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-surefire-plugin</artifactId>

                <version>2.22.0</version>

                <configuration>

                <includes>

                   <include>**/Start.java</include>

                </includes>

                    <testFailureIgnore>true</testFailureIgnore>

                </configuration>

            </plugin>

   </plugins>

         </build>

         <dependencies>

               </dependencies>

</project>

   

  • Create a batch file for executing the maven projects 
        Run.bat

cd D:\AutonationWithDockerJenkins\ExecutionOnJenkins\

mvn test

cmd /k


  •  Setup CloudBees jenkins Pipeline
















































Comments

Popular posts from this blog

Running selenium script from AWS using jenkins