Skip to content

Commit 145f5d4

Browse files
committed
Initial implementation
0 parents  commit 145f5d4

File tree

5 files changed

+171
-0
lines changed

5 files changed

+171
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.iml
2+
.idea/
3+
target/
4+
work/
5+
.project
6+
.classpath
7+
.settings/

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) 2016, CloudBees, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Docker Java API Plugin
2+
3+
This plugin exposes the [docker-java](http://github.com/docker-java/docker-java) API to Jenkins plugins.
4+
5+
Only Netty based transport is available, JAX-RS default implementation doesn't work.
6+
7+
See also this [plugin's wiki page][wiki]
8+
9+
# Environment
10+
11+
The following build environment is required to build this plugin
12+
13+
* `java-1.7` and `maven-3.0.5`
14+
15+
# Build
16+
17+
To build the plugin locally:
18+
19+
mvn clean verify
20+
21+
# Release
22+
23+
To release the plugin:
24+
25+
mvn release:prepare release:perform -B
26+
27+
# Test local instance
28+
29+
To test in a local Jenkins instance
30+
31+
mvn hpi:run
32+
33+
[wiki]: http://wiki.jenkins-ci.org/display/JENKINS/Docker+Java+API+Plugin

pom.xml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<parent>
6+
<groupId>org.jenkins-ci.plugins</groupId>
7+
<artifactId>plugin</artifactId>
8+
<version>2.4</version>
9+
</parent>
10+
11+
<artifactId>docker-java-api</artifactId>
12+
<version>3.0.0-RC4-SNAPSHOT</version>
13+
<packaging>hpi</packaging>
14+
15+
<name>Docker API Plugin</name>
16+
<description>Plugin providing Docker API for other plugins. Wrap docker-java and required dependency for Netty transport only. JAX-RS default transport is not usable</description>
17+
18+
<scm>
19+
<connection>scm:git:ssh://github.com/ydubreuil/docker-api-plugin.git</connection>
20+
<developerConnection>scm:git:ssh://[email protected]/ydubreuil/docker-api-plugin.git</developerConnection>
21+
<url>https://github.com/ydubreuil/docker-api-plugin</url>
22+
<tag>HEAD</tag>
23+
</scm>
24+
25+
<properties>
26+
<jenkins.version>1.609.1</jenkins.version>
27+
<java.level>7</java.level>
28+
</properties>
29+
30+
<licenses>
31+
<license>
32+
<name>MIT</name>
33+
<url>http://opensource.org/licenses/MIT</url>
34+
</license>
35+
</licenses>
36+
37+
<repositories>
38+
<repository>
39+
<id>repo.jenkins-ci.org</id>
40+
<url>http://repo.jenkins-ci.org/public/</url>
41+
</repository>
42+
</repositories>
43+
<pluginRepositories>
44+
<pluginRepository>
45+
<id>repo.jenkins-ci.org</id>
46+
<url>http://repo.jenkins-ci.org/public/</url>
47+
</pluginRepository>
48+
</pluginRepositories>
49+
50+
<dependencies>
51+
<dependency>
52+
<groupId>com.github.docker-java</groupId>
53+
<artifactId>docker-java</artifactId>
54+
<version>3.0.0-RC4</version>
55+
<exclusions>
56+
<!-- use the version supplied by jackson2-api -->
57+
<exclusion>
58+
<groupId>com.fasterxml.jackson.core</groupId>
59+
<artifactId>jackson-databind</artifactId>
60+
</exclusion>
61+
<exclusion>
62+
<groupId>com.fasterxml.jackson.jaxrs</groupId>
63+
<artifactId>jackson-jaxrs-json-provider</artifactId>
64+
</exclusion>
65+
66+
<!-- use versions supplied with Jenkins -->
67+
<exclusion>
68+
<groupId>commons-codec</groupId>
69+
<artifactId>commons-codec</artifactId>
70+
</exclusion>
71+
<exclusion>
72+
<groupId>commons-io</groupId>
73+
<artifactId>commons-io</artifactId>
74+
</exclusion>
75+
<exclusion>
76+
<groupId>commons-lang</groupId>
77+
<artifactId>commons-lang</artifactId>
78+
</exclusion>
79+
80+
<!-- disable JAX-RS transport, otherwise, it requires shading and messy stuff -->
81+
<exclusion>
82+
<groupId>org.glassfish.jersey.connectors</groupId>
83+
<artifactId>jersey-apache-connector</artifactId>
84+
</exclusion>
85+
<exclusion>
86+
<groupId>org.apache.httpcomponents</groupId>
87+
<artifactId>httpclient</artifactId>
88+
</exclusion>
89+
<exclusion>
90+
<groupId>org.glassfish.jersey.core</groupId>
91+
<artifactId>jersey-client</artifactId>
92+
</exclusion>
93+
<exclusion>
94+
<groupId>com.google.guava</groupId>
95+
<artifactId>guava</artifactId>
96+
</exclusion>
97+
</exclusions>
98+
</dependency>
99+
100+
<dependency>
101+
<groupId>org.jenkins-ci.plugins</groupId>
102+
<artifactId>jackson2-api</artifactId>
103+
<version>2.6.4</version>
104+
</dependency>
105+
</dependencies>
106+
</project>

src/main/resources/index.jelly

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?jelly escape-by-default='true'?>
2+
<div>
3+
This plugin provides <a href="https://github.com/docker-java/docker-java">docker-java</a> API for other plugins.
4+
</div>

0 commit comments

Comments
 (0)