2016-04-26 04:23:22 +08:00
<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" >
2014-05-21 01:06:20 +08:00
<modelVersion > 4.0.0</modelVersion>
2016-03-20 01:55:04 +08:00
<parent >
<groupId > org.jenkins-ci.plugins</groupId>
<artifactId > plugin</artifactId>
<version > 2.3</version>
</parent>
2014-05-21 01:06:20 +08:00
2016-03-20 01:55:04 +08:00
<properties >
2016-04-29 01:39:28 +08:00
<jenkins.version > 1.609.3</jenkins.version>
2016-03-20 01:55:04 +08:00
<hpi-plugin.version > 1.115</hpi-plugin.version>
<jenkins-test-harness.version > ${jenkins.version}</jenkins-test-harness.version>
<findbugs.failOnError > false</findbugs.failOnError>
</properties>
2016-03-04 05:59:19 +08:00
2018-07-19 17:52:29 +08:00
<artifactId > gitee</artifactId>
2018-07-20 21:50:48 +08:00
<version > 1.0.12-SNAPSHOT</version>
2018-07-19 17:52:29 +08:00
<name > Gitee Plugin</name>
2018-07-23 10:34:03 +08:00
<description > This plugin integrates Gitee to Jenkins by faking a Gitee CI Server. This plugin allows Gitee to trigger builds in Jenkins when code is committed or merge requests are opened/updated. It can also send build status back to Gitee.</description>
2018-07-20 12:06:55 +08:00
<url > https://wiki.jenkins.io/display/JENKINS/Gitee+Plugin</url>
2015-01-27 15:18:39 +08:00
<packaging > hpi</packaging>
2014-05-21 01:06:20 +08:00
<licenses >
<license >
2016-03-12 14:18:06 +08:00
<name > GPL v2.0 License</name>
<url > http://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html</url>
2014-05-21 01:06:20 +08:00
</license>
</licenses>
2014-05-22 14:18:59 +08:00
<developers >
2018-07-03 14:51:33 +08:00
<developer >
<id > Yashin</id>
<name > Yashin Luo</name>
<email > Yashin.luo@foxmail.com</email>
</developer>
2014-05-22 14:18:59 +08:00
</developers>
2016-03-03 06:35:46 +08:00
<distributionManagement >
<repository >
2016-03-03 07:29:04 +08:00
<id > maven.jenkins-ci.org</id>
2016-03-03 06:35:46 +08:00
<name > jenkinsci-releases</name>
2018-07-20 12:06:55 +08:00
<url > https://repo.jenkins-ci.org/releases</url>
2016-03-03 06:35:46 +08:00
</repository>
<snapshotRepository >
2016-03-03 07:29:04 +08:00
<id > maven.jenkins-ci.org</id>
2016-03-03 06:35:46 +08:00
<name > jenkinsci-snapshots</name>
2016-03-05 06:51:59 +08:00
<url > http://repo.jenkins-ci.org/snapshots</url>
2016-03-03 06:35:46 +08:00
</snapshotRepository>
</distributionManagement>
2014-07-30 15:48:58 +08:00
<scm >
2018-07-20 12:06:55 +08:00
<connection > scm:git:ssh://github.com:jenkinsci/gitee-plugin.git</connection>
<developerConnection > scm:git:git@github.com:jenkinsci/gitee-plugin.git</developerConnection>
<url > https://github.com/jenkinsci/gitee-plugin</url>
2018-07-20 21:50:48 +08:00
<tag > HEAD</tag>
2016-03-20 01:55:04 +08:00
</scm>
2018-07-03 14:51:33 +08:00
<!-- get every artifact through repo.jenkins - ci.org, which proxies all the artifacts that we need -->
2014-05-21 01:06:20 +08:00
<repositories >
2016-03-20 01:55:04 +08:00
<repository >
<id > repo.jenkins-ci.org</id>
<url > http://repo.jenkins-ci.org/public/</url>
</repository>
<repository >
<id > jgit-repository</id>
<name > Eclipse JGit Repository</name>
<url > http://download.eclipse.org/jgit/maven</url>
</repository>
2014-05-21 01:06:20 +08:00
</repositories>
<pluginRepositories >
<pluginRepository >
<id > repo.jenkins-ci.org</id>
<url > http://repo.jenkins-ci.org/public/</url>
</pluginRepository>
</pluginRepositories>
2015-01-27 06:20:58 +08:00
<build >
2018-07-20 12:06:55 +08:00
<defaultGoal > clean install</defaultGoal>
2015-01-27 06:20:58 +08:00
<directory > ${project.basedir}/target</directory>
<outputDirectory > ${project.build.directory}/classes</outputDirectory>
<finalName > ${project.artifactId}-${project.version}</finalName>
<testOutputDirectory > ${project.build.directory}/test-classes</testOutputDirectory>
<sourceDirectory > ${project.basedir}/src/main/java</sourceDirectory>
<scriptSourceDirectory > ${project.basedir}/src/main/scripts</scriptSourceDirectory>
<testSourceDirectory > ${project.basedir}/src/test/java</testSourceDirectory>
<resources >
<resource >
<directory > ${project.basedir}/src/main/resources</directory>
</resource>
</resources>
<testResources >
<testResource >
<directory > ${project.basedir}/src/test/resources</directory>
</testResource>
</testResources>
</build>
2014-05-22 14:18:59 +08:00
<dependencies >
2016-03-20 01:55:04 +08:00
<!-- Jenkins dependencies -->
<dependency >
<groupId > org.jenkins-ci.plugins</groupId>
<artifactId > git</artifactId>
<version > 2.4.1</version>
</dependency>
<dependency >
<groupId > org.jenkins-ci.plugins</groupId>
<artifactId > git-client</artifactId>
<version > 1.19.0</version>
</dependency>
2016-04-29 01:39:28 +08:00
<dependency >
<groupId > org.jenkins-ci.plugins.workflow</groupId>
<artifactId > workflow-step-api</artifactId>
<version > 1.15</version>
</dependency>
2017-12-08 23:26:20 +08:00
<dependency >
<groupId > org.jenkins-ci.plugins.workflow</groupId>
<artifactId > workflow-job</artifactId>
<version > 1.15</version>
</dependency>
2016-05-03 05:39:20 +08:00
<dependency >
<groupId > org.jenkins-ci.plugins</groupId>
<artifactId > credentials</artifactId>
2016-06-15 04:11:41 +08:00
<version > 2.1.0</version>
2016-05-03 05:39:20 +08:00
</dependency>
<dependency >
<groupId > org.jenkins-ci.plugins</groupId>
<artifactId > plain-credentials</artifactId>
<version > 1.1</version>
2016-06-25 20:51:26 +08:00
<optional > true</optional>
2016-05-03 05:39:20 +08:00
</dependency>
2017-01-09 18:11:28 +08:00
<dependency >
<groupId > org.jenkins-ci</groupId>
<artifactId > symbol-annotation</artifactId>
<version > 1.5</version>
</dependency>
2016-03-20 01:55:04 +08:00
<dependency >
<groupId > org.eclipse.jgit</groupId>
<artifactId > org.eclipse.jgit</artifactId>
<version > 3.5.2.201411120430-r</version>
</dependency>
2017-04-26 19:17:45 +08:00
<dependency >
<groupId > org.jenkins-ci.plugins</groupId>
<artifactId > matrix-project</artifactId>
<version > 1.10</version>
</dependency>
2017-11-14 17:30:21 +08:00
<dependency >
<groupId > org.jenkins-ci.plugins</groupId>
<artifactId > display-url-api</artifactId>
<version > 1.1.1</version>
</dependency>
2016-02-15 03:28:36 +08:00
2016-03-20 01:55:04 +08:00
<!-- REST client dependencies -->
<dependency >
<groupId > org.jboss.spec.javax.ws.rs</groupId>
<artifactId > jboss-jaxrs-api_2.0_spec</artifactId>
<version > 1.0.0.Final</version>
</dependency>
<dependency >
<groupId > org.jboss.resteasy</groupId>
<artifactId > resteasy-client</artifactId>
2016-05-04 04:20:59 +08:00
<version > 3.0.16.Final</version>
2016-03-20 01:55:04 +08:00
</dependency>
<dependency >
<groupId > com.fasterxml.jackson.jaxrs</groupId>
<artifactId > jackson-jaxrs-json-provider</artifactId>
<version > 2.6.5</version>
</dependency>
<dependency >
<groupId > com.fasterxml.jackson.core</groupId>
<artifactId > jackson-databind</artifactId>
<version > 2.6.5</version>
</dependency>
<dependency >
<groupId > org.apache.httpcomponents</groupId>
<artifactId > httpclient</artifactId>
2016-03-24 06:18:50 +08:00
<version > 4.3.1</version>
2016-03-20 01:55:04 +08:00
</dependency>
2016-03-19 08:38:35 +08:00
2016-03-20 01:55:04 +08:00
<!-- util dependencies -->
<dependency >
<groupId > com.google.guava</groupId>
<artifactId > guava</artifactId>
<version > 18.0</version>
</dependency>
<dependency >
<groupId > net.karneim</groupId>
<artifactId > pojobuilder</artifactId>
<version > 3.4.0</version>
<scope > provided</scope>
</dependency>
2016-03-19 08:38:35 +08:00
2016-03-20 01:55:04 +08:00
<!-- test dependencies -->
<dependency >
<groupId > junit</groupId>
<artifactId > junit</artifactId>
<version > 4.12</version>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.hamcrest</groupId>
<artifactId > hamcrest-all</artifactId>
<version > 1.3</version>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.mockito</groupId>
<artifactId > mockito-all</artifactId>
<version > 1.9.5</version>
<scope > test</scope>
</dependency>
2017-06-12 22:10:14 +08:00
<dependency >
<groupId > org.powermock</groupId>
<artifactId > powermock-api-mockito</artifactId>
<version > 1.6.1</version>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.powermock</groupId>
<artifactId > powermock-module-junit4</artifactId>
<version > 1.6.1</version>
<scope > test</scope>
</dependency>
2016-03-20 01:55:04 +08:00
<dependency >
<groupId > org.mock-server</groupId>
<artifactId > mockserver-netty</artifactId>
<version > 3.10.2</version>
<scope > test</scope>
2016-03-24 17:27:34 +08:00
<exclusions >
<exclusion >
<groupId > org.bouncycastle</groupId>
<artifactId > bcmail-jdk15on</artifactId>
</exclusion>
<exclusion >
<groupId > org.bouncycastle</groupId>
<artifactId > bcprov-jdk15on</artifactId>
</exclusion>
<exclusion >
<groupId > org.bouncycastle</groupId>
<artifactId > bcpkix-jdk15on</artifactId>
</exclusion>
2016-04-07 00:54:54 +08:00
<exclusion >
<groupId > javax.servlet</groupId>
<artifactId > javax.servlet-api</artifactId>
</exclusion>
2016-03-24 17:27:34 +08:00
</exclusions>
2016-03-20 01:55:04 +08:00
</dependency>
2016-03-24 06:18:50 +08:00
<dependency >
<groupId > org.postgresql</groupId>
<artifactId > postgresql</artifactId>
<version > 9.4.1208</version>
<scope > test</scope>
</dependency>
2014-05-22 14:18:59 +08:00
</dependencies>
2016-03-24 06:18:50 +08:00
<profiles >
<profile >
<id > integration-test</id>
2018-07-03 14:51:33 +08:00
<!-- 无需指定 -->
<!-- <properties> -->
<!-- <gitlab.version>8.17.4</gitlab.version> -->
<!-- <postgres.version>9.5 - 1</postgres.version> -->
<!-- </properties> -->
2016-03-24 06:18:50 +08:00
<build >
<plugins >
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-surefire-plugin</artifactId>
<configuration >
<skip > true</skip>
</configuration>
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-failsafe-plugin</artifactId>
<version > 2.16</version>
<executions >
<execution >
<goals >
<goal > integration-test</goal>
<goal > verify</goal>
</goals>
<configuration >
<systemProperties >
<property >
2018-07-03 14:51:33 +08:00
<name > gitee.http.port</name>
<value > ${gitee.http.port}</value>
2016-03-24 06:18:50 +08:00
</property>
<property >
<name > postgres.port</name>
<value > ${postgres.port}</value>
</property>
</systemProperties>
</configuration>
</execution>
</executions>
</plugin>
<plugin >
<groupId > org.sonatype.plugins</groupId>
<artifactId > port-allocator-maven-plugin</artifactId>
<version > 1.2</version>
<executions >
<execution >
<phase > pre-integration-test</phase>
<goals >
<goal > allocate-ports</goal>
</goals>
<configuration >
<ports >
<port >
2018-07-03 14:51:33 +08:00
<name > gitee.http.port</name>
2016-03-24 06:18:50 +08:00
</port>
<port >
2018-07-03 14:51:33 +08:00
<name > gitee.ssh.port</name>
2016-03-24 06:18:50 +08:00
</port>
<port >
<name > postgres.port</name>
</port>
</ports>
</configuration>
</execution>
</executions>
</plugin>
<plugin >
<groupId > io.fabric8</groupId>
<artifactId > docker-maven-plugin</artifactId>
<version > 0.14.2</version>
<configuration >
<verbose > true</verbose>
<images >
<image >
2017-10-26 01:35:47 +08:00
<name > sameersbn/postgresql:${postgres.version}</name>
2018-07-03 14:51:33 +08:00
<alias > it-gitee-postgres</alias>
2016-03-24 06:18:50 +08:00
<run >
<namingStrategy > alias</namingStrategy>
<env >
2018-07-03 14:51:33 +08:00
<DB_NAME > giteehq_production</DB_NAME>
<DB_USER > gitee</DB_USER>
2016-03-24 06:18:50 +08:00
<DB_PASS > password</DB_PASS>
2017-10-26 01:35:47 +08:00
<DB_EXTENSION > pg_trgm</DB_EXTENSION>
2016-03-24 06:18:50 +08:00
</env>
<ports >
<port > ${postgres.port}:5432</port>
</ports>
</run>
</image>
<image >
<name > sameersbn/redis</name>
2018-07-03 14:51:33 +08:00
<alias > it-gitee-redis</alias>
2016-03-24 06:18:50 +08:00
<run >
<namingStrategy > alias</namingStrategy>
</run>
</image>
<image >
2018-07-03 14:51:33 +08:00
<name > sameersbn/gitee</name>
<alias > it-gitee-gitee</alias>
2016-03-24 06:18:50 +08:00
<run >
2017-10-26 01:35:47 +08:00
<namingStrategy > alias</namingStrategy>
2016-03-24 06:18:50 +08:00
<links >
2018-07-03 14:51:33 +08:00
<link > it-gitee-postgres:postgresql</link>
<link > it-giee-redis:redisio</link>
2016-03-24 06:18:50 +08:00
</links>
<ports >
2018-07-03 14:51:33 +08:00
<port > ${gitee.http.port}:80</port>
<port > ${gitee.ssh.port}:22</port>
2016-03-24 06:18:50 +08:00
</ports>
<env >
2017-10-26 01:35:47 +08:00
<DEBUG > false</DEBUG>
<TZ > Asia/Kolkata</TZ>
2018-07-03 14:51:33 +08:00
<GITEE_TIMEZONE > Kolkata</GITEE_TIMEZONE>
<GITEE_PORT > ${gitee.http.port}</GITEE_PORT>
<GITEE_SSH_PORT > ${gitee.ssh.port}</GITEE_SSH_PORT>
<GITEE_SECRETS_DB_KEY_BASE > long-and-random-alpha-numeric-string</GITEE_SECRETS_DB_KEY_BASE>
<GITEE_SECRETS_SECRET_KEY_BASE > long-and-random-alphanumeric-string</GITEE_SECRETS_SECRET_KEY_BASE>
<GITEE_SECRETS_OTP_KEY_BASE > long-and-random-alpha-numeric-string</GITEE_SECRETS_OTP_KEY_BASE>
<GITEE_HOST > 172.17.0.1</GITEE_HOST>
2016-03-24 06:18:50 +08:00
</env>
<wait >
<http >
2018-07-03 14:51:33 +08:00
<url > http://localhost:${gitee.http.port}/</url>
2016-03-24 06:18:50 +08:00
</http>
<time > 120000</time>
</wait>
</run>
</image>
</images>
</configuration>
<executions >
<execution >
<id > start</id>
<phase > pre-integration-test</phase>
<goals >
<goal > build</goal>
<goal > start</goal>
</goals>
</execution>
<execution >
<id > stop</id>
<phase > post-integration-test</phase>
<goals >
<goal > stop</goal>
<goal > remove</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
2014-05-21 01:06:20 +08:00
</project>