Skip to content

Commit

Permalink
[JENKINS-44074] Add an integration test and the maven-failsafe-plugin…
Browse files Browse the repository at this point in the history
… in the test “maven jar project”
  • Loading branch information
Cyrille Le Clerc committed May 5, 2017
1 parent 8e5f233 commit dd20081
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
Expand Up @@ -145,7 +145,7 @@ public void maven_build_jar_project_on_master_succeeds() throws Exception {
String pipelineScript = "node('master') {\n" +
" git($/" + gitRepoRule.toString() + "/$)\n" +
" withMaven() {\n" +
" sh 'mvn package'\n" +
" sh 'mvn package verify'\n" +
" }\n" +
"}";

Expand Down
Expand Up @@ -12,5 +12,22 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.20</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

@@ -0,0 +1,14 @@
package com.example;

import org.junit.Test;

/**
* Integration test for the maven-failsafe-plugin
*/
public class MonoModuleMavenAppIT {

@Test
public void success(){
System.out.println("MonoModuleMavenAppIT#success");
}
}

0 comments on commit dd20081

Please sign in to comment.