jenkins/test/pom.xml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

488 lines
18 KiB
XML
Raw Permalink Normal View History

2013-03-09 03:35:38 +08:00
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
2011-01-31 05:18:06 +08:00
<groupId>org.jenkins-ci.main</groupId>
<artifactId>jenkins-parent</artifactId>
<version>2.495</version>
</parent>
<artifactId>jenkins-test</artifactId>
<name>Tests for Jenkins core</name>
<description>Functional tests for Jenkins core</description>
<properties>
<mavenDebug>false</mavenDebug>
<!-- Minimum Remoting version, which is tested for API compatibility, duplicated so that renovate only updates the latest remoting version property -->
<remoting.minimum.supported.version>3107.v665000b_51092</remoting.minimum.supported.version>
2022-04-18 04:22:11 +08:00
<!-- Filled in by jacoco-maven-plugin -->
2021-12-31 23:52:48 +08:00
<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</jenkins.addOpens>
2022-04-05 00:17:18 +08:00
<!-- 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>io.jenkins.plugins</groupId>
<artifactId>commons-lang3-api</artifactId>
<version>3.17.0-84.vb_b_938040b_078</version>
</dependency>
<dependency>
<!-- RequireUpperBoundDeps between checks-api, plugin-util-api, and font-awesome-api -->
<groupId>io.jenkins.plugins</groupId>
<artifactId>commons-text-api</artifactId>
<version>1.13.0-153.v91dcd89e2a_22</version>
</dependency>
<dependency>
<!-- RequireUpperBoundDeps between bootstrap5-api and echarts-api -->
<groupId>io.jenkins.plugins</groupId>
<artifactId>font-awesome-api</artifactId>
<version>6.6.0-2</version>
</dependency>
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>ionicons-api</artifactId>
<version>74.v93d5eb_813d5f</version>
</dependency>
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>javax-activation-api</artifactId>
<version>1.2.0-7</version>
</dependency>
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>plugin-util-api</artifactId>
<version>5.1.0</version>
</dependency>
[JEP-228] Unforking XStream (#4944) * Unforking XStream * Some overrides missing from MapperDelegate * [XSTR-762] writeReplace & readResolve must be accessible to be used from subclasses * DomElement.click overloads changed incompatibly * Giving up on ToolInstallation being Serializable. Fixing MavenInstallation accordingly. AntInstallation was already fixed: https://github.com/jenkinsci/ant-plugin/commit/c957dca4cd7789e3918e90ae020687aeaeea998e * Relaxing message assertion in RobustReflectionConverter.randomExceptionsReported * Picking up https://github.com/jenkinsci/matrix-auth-plugin/pull/89 caught via JobTest * https://github.com/jenkinsci/jenkins-test-harness/pull/243 released * Another case forgotten in 0e5aeec4ccc67207c0912ffe471fe5cf2815cf04 * XStream has SecurityMapper, but we have our own system already, so suppress warning * GetMavenVersion was also serializing its outer class * Trying to make ToolInstallation serializable compatible * Avoid throwing IOException from PersistedList.inModified for common cases covered by https://github.com/jenkinsci/jenkins-test-harness/pull/243 * Found a way to avoid looking up XStream.converterRegistry by reflection * XStream2Test.crashXstream now throwing ConversionException, not ForbiddenClassException * Noting which version of the parent POM has https://github.com/jenkinsci/jenkins-test-harness/pull/243 * Refreshed Javadoc for XStream2 * The simplest solution to JENKINS-19561 seems to be to stop using autodetectAnnotations * Fixing some deprecations in Robust*Converter * Display OldDataMonitor errors from RobustReflectionConverter during functional tests * Stray digit in test name * Added XStream2AnnotationTest to clearly document incompatibility * Picking up release of https://github.com/jenkinsci/matrix-auth-plugin/pull/89 Co-authored-by: Basil Crow <me@basilcrow.com> Co-authored-by: Basil Crow <me@basilcrow.com>
2020-11-07 05:03:23 +08:00
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>ant</artifactId>
<version>511.v0a_a_1a_334f41b_</version>
[JEP-228] Unforking XStream (#4944) * Unforking XStream * Some overrides missing from MapperDelegate * [XSTR-762] writeReplace & readResolve must be accessible to be used from subclasses * DomElement.click overloads changed incompatibly * Giving up on ToolInstallation being Serializable. Fixing MavenInstallation accordingly. AntInstallation was already fixed: https://github.com/jenkinsci/ant-plugin/commit/c957dca4cd7789e3918e90ae020687aeaeea998e * Relaxing message assertion in RobustReflectionConverter.randomExceptionsReported * Picking up https://github.com/jenkinsci/matrix-auth-plugin/pull/89 caught via JobTest * https://github.com/jenkinsci/jenkins-test-harness/pull/243 released * Another case forgotten in 0e5aeec4ccc67207c0912ffe471fe5cf2815cf04 * XStream has SecurityMapper, but we have our own system already, so suppress warning * GetMavenVersion was also serializing its outer class * Trying to make ToolInstallation serializable compatible * Avoid throwing IOException from PersistedList.inModified for common cases covered by https://github.com/jenkinsci/jenkins-test-harness/pull/243 * Found a way to avoid looking up XStream.converterRegistry by reflection * XStream2Test.crashXstream now throwing ConversionException, not ForbiddenClassException * Noting which version of the parent POM has https://github.com/jenkinsci/jenkins-test-harness/pull/243 * Refreshed Javadoc for XStream2 * The simplest solution to JENKINS-19561 seems to be to stop using autodetectAnnotations * Fixing some deprecations in Robust*Converter * Display OldDataMonitor errors from RobustReflectionConverter during functional tests * Stray digit in test name * Added XStream2AnnotationTest to clearly document incompatibility * Picking up release of https://github.com/jenkinsci/matrix-auth-plugin/pull/89 Co-authored-by: Basil Crow <me@basilcrow.com> Co-authored-by: Basil Crow <me@basilcrow.com>
2020-11-07 05:03:23 +08:00
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>bouncycastle-api</artifactId>
<version>2.30.1.80-256.vf98926042a_9b_</version>
</dependency>
<dependency>
<!-- RequireUpperBoundDeps via mailer and junit -->
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>display-url-api</artifactId>
<version>2.209.v582ed814ff2f</version>
</dependency>
<dependency>
<!-- Required by workflow-support -->
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>scm-api</artifactId>
<version>703.v72ff4b_259600</version>
</dependency>
<dependency>
<!-- requireUpperBoundDeps via matrix-project and junit -->
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>script-security</artifactId>
<version>1369.v9b_98a_4e95b_2d</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-api</artifactId>
<version>1363.v03f731255494</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-step-api</artifactId>
<version>686.v603d058a_e148</version>
</dependency>
<dependency>
<!-- Required by plugin-util-api -->
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-support</artifactId>
<version>944.v5a_859593b_98a_</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
2022-04-05 00:17:18 +08:00
<!-- For maven-hpi-plugin -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>jenkins-core</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
2021-12-05 00:17:02 +08:00
<dependency>
2022-03-13 02:06:05 +08:00
<groupId>${project.groupId}</groupId>
<artifactId>jenkins-war</artifactId>
<version>${project.version}</version>
<type>executable-war</type>
2021-12-05 00:17:02 +08:00
<scope>test</scope>
</dependency>
2021-04-18 02:01:54 +08:00
<dependency>
2022-03-13 02:06:05 +08:00
<groupId>io.jenkins.plugins</groupId>
<artifactId>javax-mail-api</artifactId>
<version>1.6.2-10</version>
<scope>test</scope>
</dependency>
<dependency>
2022-03-13 02:06:05 +08:00
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
<version>4.2.2</version>
<scope>test</scope>
</dependency>
<dependency>
2022-03-13 02:06:05 +08:00
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
2022-03-13 02:06:05 +08:00
<groupId>org.jenkins-ci</groupId>
<artifactId>test-annotations</artifactId>
<scope>test</scope>
</dependency>
2024-08-15 02:59:11 +08:00
<dependency>
<groupId>org.jenkins-ci.main</groupId>
<artifactId>jenkins-test-harness</artifactId>
<version>2389.va_b_3a_21a_c00ed</version>
2024-08-15 02:59:11 +08:00
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>${project.groupId}</groupId>
<artifactId>jenkins-war</artifactId>
</exclusion>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jenkins-ci.main</groupId>
<artifactId>jenkins-test-harness-tools</artifactId>
<version>2.2</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.jenkins-ci.main</groupId>
<artifactId>jenkins-test-harness</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jenkins-ci.modules</groupId>
<artifactId>instance-identity</artifactId>
<version>201.vd2a_b_5a_468a_a_6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>antisamy-markup-formatter</artifactId>
<version>162.v0e6ec0fcfcf6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
2022-03-13 02:06:05 +08:00
<artifactId>cloudbees-folder</artifactId>
<version>6.980.v5a_cc0cb_25881</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>credentials</artifactId>
<version>1405.vb_cda_74a_f8974</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>junit</artifactId>
<version>1312.v1a_235a_b_94a_31</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
2022-03-13 02:06:05 +08:00
<artifactId>mailer</artifactId>
<version>489.vd4b_25144138f</version>
<scope>test</scope>
</dependency>
<dependency>
2022-03-13 02:06:05 +08:00
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>matrix-auth</artifactId>
<version>3.2.3</version>
2022-03-13 02:06:05 +08:00
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>matrix-project</artifactId>
<version>845.vffd7fa_f27555</version>
2022-03-13 02:06:05 +08:00
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>structs</artifactId>
<version>338.v848422169819</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<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>
2022-04-05 00:17:18 +08:00
<executions>
<execution>
<id>prepare-test-plugins</id>
<goals>
<goal>resolve-test-dependencies</goal>
</goals>
<phase>test-compile</phase>
</execution>
2022-04-05 00:17:18 +08:00
<execution>
<id>test-runtime</id>
<goals>
<goal>test-runtime</goal>
</goals>
<phase>test</phase>
</execution>
</executions>
</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>
2021-12-31 23:52:48 +08:00
<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-minimum-supported.jar</destFileName>
</artifactItem>
2024-07-31 02:37:01 +08:00
<artifactItem>
<groupId>org.jenkins-ci.main</groupId>
<artifactId>remoting</artifactId>
<version>3256.v88a_f6e922152</version>
<type>jar</type>
<outputDirectory>${project.build.outputDirectory}/old-remoting</outputDirectory>
<destFileName>remoting-before-SECURITY-3430-fix.jar</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.jenkins-ci.main</groupId>
<artifactId>remoting</artifactId>
<version>3085.vc4c6977c075a</version>
<type>jar</type>
<outputDirectory>${project.build.outputDirectory}/old-remoting</outputDirectory>
<destFileName>remoting-unsupported.jar</destFileName>
</artifactItem>
<artifactItem>
<groupId>io.jenkins.plugins</groupId>
<artifactId>design-library</artifactId>
<version>354.v87d9d5804b_c1</version>
<type>hpi</type>
<outputDirectory>${project.build.outputDirectory}/plugins</outputDirectory>
<destFileName>design-library.jpi</destFileName>
</artifactItem>
<artifactItem>
<groupId>io.jenkins.plugins</groupId>
<artifactId>prism-api</artifactId>
<version>1.29.0-18</version>
<type>hpi</type>
<outputDirectory>${project.build.outputDirectory}/plugins</outputDirectory>
<destFileName>prism-api.jpi</destFileName>
</artifactItem>
<artifactItem>
<groupId>io.jenkins.plugins</groupId>
<artifactId>bootstrap5-api</artifactId>
<version>5.3.3-1</version>
<type>hpi</type>
<outputDirectory>${project.build.outputDirectory}/plugins</outputDirectory>
<destFileName>bootstrap5-api.jpi</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>
2022-04-18 04:22:11 +08:00
<argLine>@{jacocoSurefireArgs} -Xmx1g @{jenkins.addOpens} @{jenkins.insaneHook}</argLine>
<systemPropertyVariables>
2021-04-18 02:01:54 +08:00
<hudson.maven.debug>${mavenDebug}</hudson.maven.debug>
<buildDirectory>${project.build.directory}</buildDirectory>
</systemPropertyVariables>
<reuseForks>false</reuseForks>
</configuration>
2022-04-05 00:17:18 +08:00
<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>
</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.skipAfterFailureCount>100</surefire.skipAfterFailureCount>
</properties>
</profile>
<profile>
2022-04-18 04:22:11 +08:00
<id>enable-jacoco</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
2022-04-18 04:22:11 +08:00
<!-- Version specified in parent POM -->
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<propertyName>jacocoSurefireArgs</propertyName>
2022-04-18 04:22:11 +08:00
<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>
<profile>
<id>release</id>
<properties>
<surefire.rerunFailingTestsCount>1</surefire.rerunFailingTestsCount>
</properties>
</profile>
</profiles>
</project>