| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519 |
- <?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>
- <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>
- <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>3256.3258.v858f3c9a_f69d</remoting.minimum.supported.version>
- <!-- 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</jenkins.addOpens>
- <!-- Filled in by maven-hpi-plugin with the path to org-netbeans-insane-hook.jar extracted from jenkins-test-harness -->
- <jenkins.insaneHook />
- <!-- Filled in by maven-hpi-plugin with "-javaagent:/path/to/mockito-core-<version>.jar" -->
- <jenkins.javaAgent />
- </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>
- <!-- Required by workflow-support -->
- <groupId>io.jenkins.plugins</groupId>
- <artifactId>caffeine-api</artifactId>
- <version>3.3.0-210.v71b_2985ce530</version>
- </dependency>
- <dependency>
- <groupId>io.jenkins.plugins</groupId>
- <artifactId>commons-lang3-api</artifactId>
- <version>3.21.0-122.v6a_ea_4fd34049</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.15.0-218.va_61573470393</version>
- </dependency>
- <dependency>
- <!-- RequireUpperBoundDeps between bootstrap5-api and echarts-api -->
- <groupId>io.jenkins.plugins</groupId>
- <artifactId>font-awesome-api</artifactId>
- <version>7.3.1-1013.v0835a_879ec6d</version>
- </dependency>
- <dependency>
- <groupId>io.jenkins.plugins</groupId>
- <artifactId>ionicons-api</artifactId>
- <version>94.vcc3065403257</version>
- </dependency>
- <dependency>
- <groupId>io.jenkins.plugins</groupId>
- <artifactId>javax-activation-api</artifactId>
- <version>1.2.0-8</version>
- </dependency>
- <dependency>
- <groupId>io.jenkins.plugins</groupId>
- <artifactId>plugin-util-api</artifactId>
- <version>7.1403.vd380b_c42e90c</version>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>ant</artifactId>
- <version>520.vd082ecfb_16a_9</version>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>bouncycastle-api</artifactId>
- <version>2.30.1.86.2-310.v4655f6742752</version>
- </dependency>
- <dependency>
- <!-- RequireUpperBoundDeps via mailer and junit -->
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>display-url-api</artifactId>
- <version>2.217.va_6b_de84cc74b_</version>
- </dependency>
- <dependency>
- <!-- Required by workflow-support -->
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>scm-api</artifactId>
- <version>728.vc30dcf7a_0df5</version>
- </dependency>
- <dependency>
- <!-- requireUpperBoundDeps via matrix-project and junit -->
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>script-security</artifactId>
- <version>1436.v1082791135e4</version>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.plugins.workflow</groupId>
- <artifactId>workflow-api</artifactId>
- <version>1413.v2ff1a_5e720fa_</version>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.plugins.workflow</groupId>
- <artifactId>workflow-step-api</artifactId>
- <version>724.v538c2362b_dfb_</version>
- </dependency>
- <dependency>
- <!-- Required by plugin-util-api -->
- <groupId>org.jenkins-ci.plugins.workflow</groupId>
- <artifactId>workflow-support</artifactId>
- <version>1015.v785e5a_b_b_8b_22</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>jakarta.servlet</groupId>
- <artifactId>jakarta.servlet-api</artifactId>
- <scope>provided</scope>
- </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-11</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.awaitility</groupId>
- <artifactId>awaitility</artifactId>
- <version>4.3.0</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci</groupId>
- <artifactId>test-annotations</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.main</groupId>
- <artifactId>jenkins-test-harness</artifactId>
- <version>2587.v9791b_4544b_b_2</version>
- <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>203.v15e81a_1b_7a_38</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>antisamy-markup-formatter</artifactId>
- <version>173.v680e3a_b_69ff3</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>cloudbees-folder</artifactId>
- <version>6.1106.v3a_d9a_6d2465e</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>credentials</artifactId>
- <version>1514.vb_01eb_014e7d4</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>junit</artifactId>
- <version>1442.vb_b_a_467df2767</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>mailer</artifactId>
- <version>534.v1b_36f5864073</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>matrix-auth</artifactId>
- <version>3.3</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>matrix-project</artifactId>
- <version>928.v1effc3f3a_236</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>structs</artifactId>
- <version>362.va_b_695ef4fdf9</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jenkins-ci.plugins</groupId>
- <artifactId>variant</artifactId>
- <version>70.va_d9f17f859e0</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-junit-jupiter</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <annotationProcessorPaths>
- <!-- Indexes @Extension, @TestExtension, @OptionalExtension, @Symbol, @Restricted,
- @Initializer, @ExportedBean and @JmhBenchmark under META-INF -->
- <path>
- <groupId>org.jenkins-ci</groupId>
- <artifactId>annotation-indexer</artifactId>
- </path>
- <!-- Writes the binary META-INF/annotations indexes -->
- <path>
- <groupId>net.java.sezpoz</groupId>
- <artifactId>sezpoz</artifactId>
- </path>
- <!-- Emits the *.stapler constructor-parameter files -->
- <path>
- <groupId>org.kohsuke.stapler</groupId>
- <artifactId>stapler</artifactId>
- </path>
- <!--
- Generates META-INF/BenchmarkList and META-INF/CompilerHints for the JMH benchmarks.
- -->
- <path>
- <groupId>org.openjdk.jmh</groupId>
- <artifactId>jmh-generator-annprocess</artifactId>
- </path>
- </annotationProcessorPaths>
- </configuration>
- </plugin>
- <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>
- <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-minimum-supported.jar</destFileName>
- </artifactItem>
- <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-unsupported.jar</destFileName>
- </artifactItem>
- <artifactItem>
- <groupId>io.jenkins.plugins</groupId>
- <artifactId>design-library</artifactId>
- <version>483.v401c307fdd1b_</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.30.0-741.v034eb_0b_0a_a_fa_</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.8-1048.va_c299057e35c</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>
- <argLine>@{jacocoSurefireArgs} -Xmx1g @{jenkins.addOpens} @{jenkins.insaneHook} @{jenkins.javaAgent}</argLine>
- <systemPropertyVariables>
- <hudson.maven.debug>${mavenDebug}</hudson.maven.debug>
- <buildDirectory>${project.build.directory}</buildDirectory>
- </systemPropertyVariables>
- <reuseForks>false</reuseForks>
- </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>
- </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>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>
- <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>
- <profile>
- <id>release</id>
- <properties>
- <surefire.rerunFailingTestsCount>1</surefire.rerunFailingTestsCount>
- </properties>
- </profile>
- </profiles>
- </project>
|