jenkins-maven-plugin
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>ch.sourcepond.maven.plugins</groupId> <artifactId>jenkins-maven-plugin</artifactId> <version>1.2.0</version> </dependency>
<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/xsd/maven-4.0.0.xsd"> <!-- 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. --> <modelVersion>4.0.0</modelVersion> <groupId>ch.sourcepond.maven.plugins</groupId> <artifactId>jenkins-maven-plugin</artifactId> <version>1.2.0</version> <packaging>maven-plugin</packaging> <name>Jenkins Maven Plugin</name> <inceptionYear>2015</inceptionYear> <description> The Jenkins Maven Plugin allows to use the Jenkins CLI (command line interface) from within a Maven build. It allows the execution of any command supported by the CLI, see https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI for further information. Therefore, it downloads the current jenkins-cli.jar from ${project.ciManagement.url}/jnlpJars/jenkins-cli.jar and uses that artifact for interacting with the Jenkins server. The architecture of the Jenkins Maven Plugin follows the UNIX philosophy "do one thing and do it well": it does not provide any logic for specific tasks, for instance creating job configuration files. This can be done with another, more appropriate plugin and its result can then be specified as stdin to the Jenkins Maven Plugin. </description> <properties> <!-- Plugin versions --> <maven.version>3.3.3</maven.version> <maven-plugin-annotations.version>3.4</maven-plugin-annotations.version> <maven-plugin-plugin.version>3.4</maven-plugin-plugin.version> <maven-surefire-plugin.version>2.18.1</maven-surefire-plugin.version> <maven-failsafe-plugin.version>2.18.1</maven-failsafe-plugin.version> <sisu-maven-plugin.version>0.3.1</sisu-maven-plugin.version> <jacoco-maven-plugin.version>0.7.5.201505241946</jacoco-maven-plugin.version> <download-maven-plugin.version>1.2.1</download-maven-plugin.version> <maven-source-plugin.version>2.4</maven-source-plugin.version> <maven-javadoc-plugin.version>2.10.3</maven-javadoc-plugin.version> <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version> <!-- Additional dependencies for integration testing --> <jetty-server.version>8.1.17.v20150415</jetty-server.version> <littleproxy.version>1.0.0-beta8</littleproxy.version> <!-- Dependency versions --> <javax.inject.version>1</javax.inject.version> <zt-exec.version>1.8</zt-exec.version> <commons-lang3.version>3.4</commons-lang3.version> <httpclient.version>4.5</httpclient.version> <junit.version>4.12</junit.version> <mockito-all.version>2.0.2-beta</mockito-all.version> <javassist.version>3.20.0-GA</javassist.version> <org.eclipse.sisu.inject.version>0.3.1</org.eclipse.sisu.inject.version> <!-- Project encoding --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>${project.build.sourceEncoding}</project.reporting.outputEncoding> <!-- Compiler configuration --> <common.encoding>UTF-8</common.encoding> <javaVersion>1.7</javaVersion> <!-- Additional configuration for integration testing --> <jenkins.war.name>jenkins.war</jenkins.war.name> <jenkins.war.url>http://mirrors.jenkins-ci.org/war-stable/latest</jenkins.war.url> <!-- Configuration for SCM, Build-Server and remote Maven Repository --> <jenkins.baseurl>https://sourcepond.ci.cloudbees.com</jenkins.baseurl> <deployment.baseurl>https://oss.sonatype.org</deployment.baseurl> <git.url>https://github.com/SourcePond/${project.artifactId}</git.url> <git.protocol.url>scm:git:${git.url}.git</git.protocol.url> <project.scm.id>github</project.scm.id> </properties> <url>${git.url}</url> <dependencyManagement> <dependencies> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> <version>${maven.version}</version> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-core</artifactId> <version>${maven.version}</version> </dependency> <dependency> <groupId>org.apache.maven.plugin-tools</groupId> <artifactId>maven-plugin-annotations</artifactId> <version>${maven-plugin-annotations.version}</version> </dependency> <dependency> <groupId>org.eclipse.sisu</groupId> <artifactId>org.eclipse.sisu.inject</artifactId> <version>${sisu-maven-plugin.version}</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>${commons-lang3.version}</version> </dependency> <dependency> <groupId>javax.inject</groupId> <artifactId>javax.inject</artifactId> <version>${javax.inject.version}</version> </dependency> <dependency> <groupId>org.zeroturnaround</groupId> <artifactId>zt-exec</artifactId> <version>${zt-exec.version}</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>${httpclient.version}</version> </dependency> <!-- Testing --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>${mockito-all.version}</version> </dependency> <dependency> <groupId>org.javassist</groupId> <artifactId>javassist</artifactId> <version>${javassist.version}</version> </dependency> <dependency> <groupId>org.littleshoot</groupId> <artifactId>littleproxy</artifactId> <version>${littleproxy.version}</version> </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-server</artifactId> <version>${jetty-server.version}</version> </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-webapp</artifactId> <version>${jetty-server.version}</version> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-core</artifactId> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> </dependency> <dependency> <groupId>javax.inject</groupId> <artifactId>javax.inject</artifactId> </dependency> <dependency> <groupId>org.zeroturnaround</groupId> <artifactId>zt-exec</artifactId> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> </dependency> <dependency> <scope>provided</scope> <groupId>org.apache.maven.plugin-tools</groupId> <artifactId>maven-plugin-annotations</artifactId> </dependency> <!-- Testing --> <dependency> <scope>test</scope> <groupId>junit</groupId> <artifactId>junit</artifactId> </dependency> <dependency> <scope>test</scope> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> </dependency> <dependency> <scope>test</scope> <groupId>org.javassist</groupId> <artifactId>javassist</artifactId> </dependency> <dependency> <scope>test</scope> <groupId>org.littleshoot</groupId> <artifactId>littleproxy</artifactId> </dependency> <dependency> <scope>test</scope> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-server</artifactId> </dependency> <dependency> <scope>test</scope> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-webapp</artifactId> </dependency> <dependency> <scope>test</scope> <groupId>org.eclipse.sisu</groupId> <artifactId>org.eclipse.sisu.inject</artifactId> </dependency> </dependencies> <build> <pluginManagement> <plugins> <plugin> <groupId>com.googlecode.maven-download-plugin</groupId> <artifactId>download-maven-plugin</artifactId> <version>${download-maven-plugin.version}</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <version>${maven-plugin-plugin.version}</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${maven-surefire-plugin.version}</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>${maven-failsafe-plugin.version}</version> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>${jacoco-maven-plugin.version}</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>${maven-source-plugin.version}</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>${maven-javadoc-plugin.version}</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <encoding>${common.encoding}</encoding> <source>${javaVersion}</source> <target>${javaVersion}</target> </configuration> </plugin> <plugin> <groupId>org.eclipse.sisu</groupId> <artifactId>sisu-maven-plugin</artifactId> <version>${sisu-maven-plugin.version}</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>${maven-gpg-plugin.version}</version> </plugin> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <versionRange>[1.0.0,)</versionRange> <goals> <goal>descriptor</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <versionRange>[1.0.0,)</versionRange> <goals> <goal>helpmojo</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId>org.eclipse.sisu</groupId> <artifactId>sisu-maven-plugin</artifactId> <versionRange>[0.3.0,)</versionRange> <goals> <goal>main-index</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <configuration> <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound> </configuration> <executions> <execution> <id>mojo-descriptor</id> <goals> <goal>descriptor</goal> </goals> </execution> <execution> <id>help-goal</id> <goals> <goal>helpmojo</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.eclipse.sisu</groupId> <artifactId>sisu-maven-plugin</artifactId> <executions> <execution> <id>generate-index</id> <goals> <goal>main-index</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <dependencies> <dependency> <groupId>org.apache.maven.surefire</groupId> <!-- Use the older JUnit 4 provider --> <artifactId>surefire-junit47</artifactId> <version>${maven-surefire-plugin.version}</version> </dependency> </dependencies> <configuration> <excludes> <exclude>**/*ITCase.java</exclude> </excludes> <includes> <include>**/*Test.java</include> </includes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <profiles> <!-- The Configuration of the integration-test profile --> <profile> <id>integration-test</id> <properties> <skip.integration.tests>false</skip.integration.tests> </properties> <build> <plugins> <plugin> <groupId>com.googlecode.maven-download-plugin</groupId> <artifactId>download-maven-plugin</artifactId> <executions> <execution> <id>download-jenkins</id> <phase>pre-integration-test</phase> <goals> <goal>wget</goal> </goals> <configuration> <url>${jenkins.war.url}/${jenkins.war.name}</url> <overwrite>true</overwrite> <outputDirectory>${project.build.directory}</outputDirectory> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <dependencies> <dependency> <groupId>org.apache.maven.surefire</groupId> <!-- Use the older JUnit 4 provider --> <artifactId>surefire-junit47</artifactId> <version>${maven-surefire-plugin.version}</version> </dependency> </dependencies> <configuration> <excludes> <exclude>**/*Test.java</exclude> </excludes> <includes> <include>**/*ITCase.java</include> </includes> </configuration> <executions> <execution> <goals> <goal>integration-test</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <!-- Profile for running release builds --> <profile> <id>release</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> <scm> <url>${git.url}</url> <connection>${git.protocol.url}</connection> <developerConnection>${git.protocol.url}</developerConnection> <tag>jenkins-maven-plugin-1.2.0</tag> </scm> <licenses> <license> <name>Apache License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0</url> </license> </licenses> <ciManagement> <url>${jenkins.baseurl}</url> <system>Jenkins</system> </ciManagement> <distributionManagement> <repository> <id>ossrh</id> <name>SourcePond Snapshot Repository</name> <url>${deployment.baseurl}/service/local/staging/deploy/maven2/</url> </repository> <snapshotRepository> <id>ossrh</id> <name>SourcePond Release Repository</name> <url>${deployment.baseurl}/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement> <developers> <developer> <id>holyoli</id> <name>Roland Hauser</name> <organization>SourcePond</organization> <timezone>+1</timezone> <email>sourcepond@gmail.com</email> </developer> </developers> </project>