GoCD Java Client

Access GoCD API in Java

License

License

Categories

Categories

Java Languages Ant Build Tools CLI User Interface
GroupId

GroupId

in.ashwanthkumar
ArtifactId

ArtifactId

gocd-java-client
Last Version

Last Version

0.0.11
Release Date

Release Date

Type

Type

jar
Description

Description

GoCD Java Client
Access GoCD API in Java
Project URL

Project URL

https://github.com/ashwanthkumar/gocd-java-client
Source Code Management

Source Code Management

https://github.com/ashwanthkumar/gocd-java-client

Download gocd-java-client

How to add to project

<!-- https://jarcasting.com/artifacts/in.ashwanthkumar/gocd-java-client/ -->
<dependency>
    <groupId>in.ashwanthkumar</groupId>
    <artifactId>gocd-java-client</artifactId>
    <version>0.0.11</version>
</dependency>
// https://jarcasting.com/artifacts/in.ashwanthkumar/gocd-java-client/
implementation 'in.ashwanthkumar:gocd-java-client:0.0.11'
// https://jarcasting.com/artifacts/in.ashwanthkumar/gocd-java-client/
implementation ("in.ashwanthkumar:gocd-java-client:0.0.11")
'in.ashwanthkumar:gocd-java-client:jar:0.0.11'
<dependency org="in.ashwanthkumar" name="gocd-java-client" rev="0.0.11">
  <artifact name="gocd-java-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='in.ashwanthkumar', module='gocd-java-client', version='0.0.11')
)
libraryDependencies += "in.ashwanthkumar" % "gocd-java-client" % "0.0.11"
[in.ashwanthkumar/gocd-java-client "0.0.11"]

Dependencies

compile (7)

Group / Artifact Type Version
commons-io : commons-io jar 2.6
org.apache.commons : commons-lang3 jar 3.8.1
org.slf4j : slf4j-api jar 1.7.30
ch.qos.logback : logback-classic jar 1.2.3
org.jsoup : jsoup jar 1.13.1
com.google.code.gson : gson jar 2.8.6
com.google.http-client : google-http-client-gson jar 1.35.0

test (3)

Group / Artifact Type Version
junit : junit jar 4.13
org.hamcrest : hamcrest-all jar 1.3
org.mockito : mockito-core jar 3.3.3

Project Modules

There are no modules declared in this project.

Build Status

gocd-java-client

Maven Central

Attempt at building a Java client for programmatically accessing GoCD. Specifically built for using in GoCD plugins, which needs to access certain information from the server.

Usage

GoCD client = new GoCD("http://localhost", "admin", "badger");
// from v19.2.0 GoCD Server onwards
GoCD client = new GoCD("http://localhost", new PersonalAccessTokenAuthentication("PERSONAL_ACCESS_TOKEN"));
Map<Integer, PipelineRunStatus> statusMap = client.pipelineRunStatus("Build-Linux");

Note: You need at least JDK 9 to use this library, but it is built and tested against JDK 11.

Credits

Up to 0.0.7, most of this is based on the work done at gocd-janitor and gocd-slack-build-notifier. Credit goes to all those who have contributed to the respective projects.

License

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Versions

Version
0.0.11
0.0.10
0.0.8
0.0.7
0.0.6
0.0.4
0.0.3
0.0.2
0.0.1