mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-29 12:35:19 +00:00
383 lines
13 KiB
XML
383 lines
13 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!--
|
||
The MIT License
|
||
|
||
Copyright (c) 2004-2018, Sun Microsystems, Inc., Kohsuke Kawaguchi, CloudBees, Inc.
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
of this software and associated documentation files (the "Software"), to deal
|
||
in the Software without restriction, including without limitation the rights
|
||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
copies of the Software, and to permit persons to whom the Software is
|
||
furnished to do so, subject to the following conditions:
|
||
|
||
The above copyright notice and this permission notice shall be included in
|
||
all copies or substantial portions of the Software.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||
THE SOFTWARE.
|
||
-->
|
||
<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/maven-v4_0_0.xsd">
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<parent>
|
||
<groupId>org.jenkins-ci.main</groupId>
|
||
<artifactId>jenkins-parent</artifactId>
|
||
<version>${revision}${changelist}</version>
|
||
</parent>
|
||
|
||
<artifactId>jenkins-test</artifactId>
|
||
|
||
<name>Tests for Jenkins core</name>
|
||
<description>Functional tests for Jenkins core</description>
|
||
|
||
<properties>
|
||
<!-- may use e.g. 2C for 2 × (number of cores) -->
|
||
<concurrency>2</concurrency>
|
||
<mavenDebug>false</mavenDebug>
|
||
<!-- Filled in by jacoco-maven-plugin -->
|
||
<jacocoSurefireArgs />
|
||
<!--
|
||
Filled in by maven-hpi-plugin from the MANIFEST.MF entry in jenkins.war, but we provide a default value for the benefit of IDEs.
|
||
Make sure to keep the directives in core/pom.xml and war/pom.xml in sync with these.
|
||
-->
|
||
<jenkins.addOpens>--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.desktop/com.sun.beans.introspect=ALL-UNNAMED</jenkins.addOpens>
|
||
<!-- Filled in by maven-hpi-plugin with the path to org-netbeans-insane-hook.jar extracted from jenkins-test-harness -->
|
||
<jenkins.insaneHook />
|
||
</properties>
|
||
|
||
<dependencyManagement>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.jenkins-ci.main</groupId>
|
||
<artifactId>jenkins-bom</artifactId>
|
||
<version>${project.version}</version>
|
||
<type>pom</type>
|
||
<scope>import</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.jenkins-ci.plugins</groupId>
|
||
<artifactId>ant</artifactId>
|
||
<version>475.vf34069fef73c</version>
|
||
</dependency>
|
||
<dependency>
|
||
<!-- RequireUpperBoundDeps via mailer and junit -->
|
||
<groupId>org.jenkins-ci.plugins</groupId>
|
||
<artifactId>display-url-api</artifactId>
|
||
<version>2.3.6</version>
|
||
</dependency>
|
||
<dependency>
|
||
<!-- requireUpperBoundDeps via matrix-project and junit -->
|
||
<groupId>org.jenkins-ci.plugins</groupId>
|
||
<artifactId>script-security</artifactId>
|
||
<version>1175.v4b_d517d6db_f0</version>
|
||
</dependency>
|
||
</dependencies>
|
||
</dependencyManagement>
|
||
<dependencies>
|
||
<!-- For maven-hpi-plugin -->
|
||
<dependency>
|
||
<groupId>${project.groupId}</groupId>
|
||
<artifactId>jenkins-core</artifactId>
|
||
<version>${project.version}</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>${project.groupId}</groupId>
|
||
<artifactId>jenkins-test-harness</artifactId>
|
||
<version>1795.vdec8c5cf0eca_</version>
|
||
<scope>test</scope>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>${project.groupId}</groupId>
|
||
<artifactId>jenkins-war</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>${project.groupId}</groupId>
|
||
<artifactId>jenkins-test-harness-tools</artifactId>
|
||
<version>2.2</version>
|
||
<scope>test</scope>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>${project.groupId}</groupId>
|
||
<artifactId>jenkins-test-harness</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>${project.groupId}</groupId>
|
||
<artifactId>jenkins-war</artifactId>
|
||
<version>${project.version}</version>
|
||
<type>executable-war</type>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.jenkins.plugins</groupId>
|
||
<artifactId>javax-mail-api</artifactId>
|
||
<version>1.6.2-6</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.awaitility</groupId>
|
||
<artifactId>awaitility</artifactId>
|
||
<version>4.2.0</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.hamcrest</groupId>
|
||
<artifactId>hamcrest-core</artifactId>
|
||
<version>2.2</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.jenkins-ci</groupId>
|
||
<artifactId>test-annotations</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.jenkins-ci.modules</groupId>
|
||
<artifactId>instance-identity</artifactId>
|
||
<version>116.vf8f487400980</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.jenkins-ci.plugins</groupId>
|
||
<artifactId>antisamy-markup-formatter</artifactId>
|
||
<version>2.7</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.jenkins-ci.plugins</groupId>
|
||
<artifactId>cloudbees-folder</artifactId>
|
||
<version>6.729.v2b_9d1a_74d673</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.jenkins-ci.plugins</groupId>
|
||
<artifactId>junit</artifactId>
|
||
<version>1119.1121.vc43d0fc45561</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.jenkins-ci.plugins</groupId>
|
||
<artifactId>mailer</artifactId>
|
||
<version>414.vcc4c33714601</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.jenkins-ci.plugins</groupId>
|
||
<artifactId>matrix-auth</artifactId>
|
||
<version>3.1.5</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.jenkins-ci.plugins</groupId>
|
||
<artifactId>matrix-project</artifactId>
|
||
<version>772.v494f19991984</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.jenkins-ci.plugins</groupId>
|
||
<artifactId>structs</artifactId>
|
||
<version>318.va_f3ccb_729b_71</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.mockito</groupId>
|
||
<artifactId>mockito-inline</artifactId>
|
||
<version>${mockito.version}</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.jenkins-ci.tools</groupId>
|
||
<artifactId>maven-hpi-plugin</artifactId>
|
||
<!-- Version specified in grandparent POM -->
|
||
<extensions>true</extensions>
|
||
<executions>
|
||
<execution>
|
||
<id>prepare-test-plugins</id>
|
||
<goals>
|
||
<goal>resolve-test-dependencies</goal>
|
||
</goals>
|
||
<phase>test-compile</phase>
|
||
</execution>
|
||
<execution>
|
||
<id>test-runtime</id>
|
||
<goals>
|
||
<goal>test-runtime</goal>
|
||
</goals>
|
||
<phase>test</phase>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.kohsuke.stapler</groupId>
|
||
<artifactId>maven-stapler-plugin</artifactId>
|
||
<!-- version specified in grandparent pom -->
|
||
<extensions>true</extensions>
|
||
</plugin>
|
||
<plugin>
|
||
<artifactId>maven-dependency-plugin</artifactId>
|
||
<!-- Version specified in grandparent POM -->
|
||
<executions>
|
||
<execution>
|
||
<id>old-remoting-for-test</id>
|
||
<goals>
|
||
<!-- we use copy as this is a dependency from outside the reactor -->
|
||
<goal>copy</goal>
|
||
</goals>
|
||
<phase>generate-test-resources</phase>
|
||
<configuration>
|
||
<artifactItems>
|
||
<artifactItem>
|
||
<groupId>org.jenkins-ci.main</groupId>
|
||
<artifactId>remoting</artifactId>
|
||
<version>${remoting.minimum.supported.version}</version>
|
||
<type>jar</type>
|
||
<outputDirectory>${project.build.outputDirectory}/old-remoting</outputDirectory>
|
||
<destFileName>remoting-minimal-supported.jar</destFileName>
|
||
</artifactItem>
|
||
<artifactItem>
|
||
<groupId>org.jenkins-ci.main</groupId>
|
||
<artifactId>remoting</artifactId>
|
||
<version>4.2</version>
|
||
<type>jar</type>
|
||
<outputDirectory>${project.build.outputDirectory}/old-remoting</outputDirectory>
|
||
<destFileName>remoting-unsupported.jar</destFileName>
|
||
</artifactItem>
|
||
</artifactItems>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-surefire-plugin</artifactId>
|
||
<!-- version specified in grandparent pom -->
|
||
<configuration>
|
||
<argLine>@{jacocoSurefireArgs} -Xmx1g @{jenkins.addOpens} @{jenkins.insaneHook}</argLine>
|
||
<systemPropertyVariables>
|
||
<hudson.maven.debug>${mavenDebug}</hudson.maven.debug>
|
||
<buildDirectory>${project.build.directory}</buildDirectory>
|
||
</systemPropertyVariables>
|
||
<reuseForks>false</reuseForks>
|
||
<forkCount>${concurrency}</forkCount>
|
||
</configuration>
|
||
<executions>
|
||
<!-- Unbind the default execution so that it does not run before test-runtime. -->
|
||
<execution>
|
||
<id>default-test</id>
|
||
<goals>
|
||
<goal>test</goal>
|
||
</goals>
|
||
<phase>none</phase>
|
||
</execution>
|
||
<!-- Bind a new execution which, by virtue of being declared after test-runtime, will also run after it. -->
|
||
<execution>
|
||
<id>functional-test</id>
|
||
<goals>
|
||
<goal>test</goal>
|
||
</goals>
|
||
<phase>test</phase>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<plugin>
|
||
<artifactId>maven-deploy-plugin</artifactId>
|
||
<!-- Version specified in grandparent POM -->
|
||
<configuration>
|
||
<skip>true</skip>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<!-- Version specified in grandparent POM -->
|
||
<configuration>
|
||
<fork>true</fork>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
|
||
<profiles>
|
||
<profile>
|
||
<!-- Profile, which allows skipping all integration tests -->
|
||
<id>light-test</id>
|
||
<properties>
|
||
<skipTests>true</skipTests>
|
||
</properties>
|
||
</profile>
|
||
<profile>
|
||
<!-- Profile, which runs only a number of quick integration tests so that the build takes less than 5 minutes -->
|
||
<id>smoke-test</id>
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<artifactId>maven-surefire-plugin</artifactId>
|
||
<!-- Version specified in grandparent POM -->
|
||
<configuration>
|
||
<groups>org.jvnet.hudson.test.SmokeTest</groups>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</profile>
|
||
<profile>
|
||
<id>all-tests</id>
|
||
<activation>
|
||
<property>
|
||
<name>!test</name>
|
||
</property>
|
||
</activation>
|
||
<properties>
|
||
<surefire.rerunFailingTestsCount>4</surefire.rerunFailingTestsCount>
|
||
<surefire.skipAfterFailureCount>100</surefire.skipAfterFailureCount>
|
||
</properties>
|
||
</profile>
|
||
<profile>
|
||
<id>enable-jacoco</id>
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.jacoco</groupId>
|
||
<artifactId>jacoco-maven-plugin</artifactId>
|
||
<!-- Version specified in parent POM -->
|
||
<executions>
|
||
<execution>
|
||
<goals>
|
||
<goal>prepare-agent</goal>
|
||
</goals>
|
||
<configuration>
|
||
<propertyName>jacocoSurefireArgs</propertyName>
|
||
<includes>
|
||
<include>hudson/*</include>
|
||
<include>hudson/**/*</include>
|
||
<include>jenkins/*</include>
|
||
<include>jenkins/**/*</include>
|
||
<include>org/jenkins/**/*</include>
|
||
</includes>
|
||
<excludes>
|
||
<exclude>**/Messages.class</exclude>
|
||
</excludes>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</profile>
|
||
</profiles>
|
||
</project>
|