| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one |
| ~ or more contributor license agreements. See the NOTICE file |
| ~ distributed with this work for additional information |
| ~ regarding copyright ownership. The ASF licenses this file |
| ~ to you under the Apache License, Version 2.0 (the |
| ~ "License"); you may not use this file except in compliance |
| ~ with the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, |
| ~ software distributed under the License is distributed on an |
| ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| ~ KIND, either express or implied. See the License for the |
| ~ specific language governing permissions and limitations |
| ~ under the License. |
| --> |
| |
| <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> |
| <groupId>org.kie.jenkins</groupId> |
| <artifactId>jenkins-tests</artifactId> |
| <name>Kogito :: Jenkins Pipeline Tests</name> |
| <version>1.0.0-SNAPSHOT</version> |
| <packaging>jar</packaging> |
| |
| <repositories> |
| <repository> |
| <id>central</id> |
| <name>Central Repository</name> |
| <url>https://repo.maven.apache.org/maven2</url> |
| <snapshots> |
| <enabled>false</enabled> |
| </snapshots> |
| </repository> |
| <repository> |
| <id>apache-public-repository-group</id> |
| <name>Apache Public Repository Group</name> |
| <url>https://repository.apache.org/content/groups/public/</url> |
| <layout>default</layout> |
| <releases> |
| <enabled>true</enabled> |
| <updatePolicy>never</updatePolicy> |
| </releases> |
| <snapshots> |
| <enabled>true</enabled> |
| <updatePolicy>daily</updatePolicy> |
| </snapshots> |
| </repository> |
| <repository> |
| <id>jenkins-releases</id> |
| <name>Jenkins Releases</name> |
| <url>https://repo.jenkins-ci.org/releases</url> |
| </repository> |
| <repository> |
| <id>repo.jenkins-ci.org</id> |
| <name>Jenkins Public</name> |
| <url>https://repo.jenkins-ci.org/public</url> |
| </repository> |
| </repositories> |
| |
| <properties> |
| <maven.compiler.source>11</maven.compiler.source> |
| <maven.compiler.target>11</maven.compiler.target> |
| |
| <!-- Do not deploy this artifact --> |
| <maven.deploy.skip>true</maven.deploy.skip> |
| |
| <!-- Those versions are taken from Jenkins directly |
| ${JENKINS_URL}/systemInfo |
| Please do not use different from what is in Jenkins unless really necessary |
| --> |
| <version.jenkins>2.401.1</version.jenkins> |
| <version.groovy>2.5.19</version.groovy> |
| <version.groovy.maven>2.1.0</version.groovy.maven> |
| <version.snakeyaml>2.0</version.snakeyaml> |
| |
| <version.jenkins.plugins.workflow-step-api>639.v6eca_cd8c04a_a_</version.jenkins.plugins.workflow-step-api> |
| |
| <!-- Other version --> |
| <version.com.lesfurets>1.13</version.com.lesfurets> |
| <version.junit>4.13.1</version.junit> |
| <version.surefire>2.22.0</version.surefire> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.codehaus.groovy</groupId> |
| <artifactId>groovy-all</artifactId> |
| <version>${version.groovy}</version> |
| <type>pom</type> |
| </dependency> |
| <dependency> |
| <groupId>com.lesfurets</groupId> |
| <artifactId>jenkins-pipeline-unit</artifactId> |
| <version>${version.com.lesfurets}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>${version.junit}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.yaml</groupId> |
| <artifactId>snakeyaml</artifactId> |
| <version>${version.snakeyaml}</version> |
| </dependency> |
| |
| <!-- needed for shared libs compilation --> |
| <dependency> |
| <groupId>org.jenkins-ci.main</groupId> |
| <artifactId>jenkins-core</artifactId> |
| <version>${version.jenkins}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.jenkins-ci.plugins.workflow</groupId> |
| <artifactId>workflow-step-api</artifactId> |
| <version>${version.jenkins.plugins.workflow-step-api}</version> |
| </dependency> |
| </dependencies> |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>${version.surefire}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.gmavenplus</groupId> |
| <artifactId>gmavenplus-plugin</artifactId> |
| <version>${version.groovy.maven}</version> |
| <executions> |
| <execution> |
| <id>groovy</id> |
| <goals> |
| <goal>addSources</goal> |
| <goal>addTestSources</goal> |
| <goal>generateStubs</goal> |
| <goal>generateTestStubs</goal> |
| <goal>compile</goal> |
| <goal>compileTests</goal> |
| <goal>removeStubs</goal> |
| <goal>removeTestStubs</goal> |
| </goals> |
| <configuration> |
| <testSources> |
| <testSource> |
| <directory>${project.basedir}/src/test/groovy</directory> |
| <includes> |
| <include>**/*.groovy</include> |
| </includes> |
| </testSource> |
| </testSources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.gmavenplus</groupId> |
| <artifactId>gmavenplus-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| </plugin> |
| </plugins> |
| <!-- <testResources> |
| <testResource> |
| <directory>${project.basedir}/..</directory> |
| <includes> |
| <include>Jenkinsfile*</include> |
| </includes> |
| </testResource> |
| <testResource> |
| <directory>${project.basedir}/../../../dsl/seed/jenkinsfiles</directory> |
| <includes> |
| <include>Jenkinsfile*</include> |
| </includes> |
| </testResource> |
| </testResources> --> |
| </build> |
| </project> |