Use test-dependencies folder to populate Jenkins under test.
Since the warnings plugin itself (in an old version) is also part of that folder we
need to replace that version with the snapshot of the target folder.
<entryPointClassPackage>io.jenkins.plugins.analysis.warnings</entryPointClassPackage>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-resources</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>../plugin/target/test-classes/test-dependencies</outputDirectory>
+ <resources>
+ <resource>
+ <directory>../plugin/target/</directory>
+ <includes>
+ <include>warnings-ng.hpi</include>
+ </includes>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<environmentVariables>
<PLUGINS_DIR>../plugin/target/test-classes/test-dependencies</PLUGINS_DIR>
<JENKINS_VERSION>${jenkins.version}</JENKINS_VERSION>
- <LOCAL_JARS>../plugin/target/warnings-ng.hpi</LOCAL_JARS>
<BROWSER>firefox</BROWSER>
</environmentVariables>
+ <rerunFailingTestsCount>1</rerunFailingTestsCount>
<includes>
<include>**/SmokeTests.java</include>
</includes>
