Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashwanthkumar/gocd-java-client
JAVA Client for GoCD API
https://github.com/ashwanthkumar/gocd-java-client
Last synced: about 6 hours ago
JSON representation
JAVA Client for GoCD API
- Host: GitHub
- URL: https://github.com/ashwanthkumar/gocd-java-client
- Owner: ashwanthkumar
- Created: 2016-07-30T15:44:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-09T23:56:56.000Z (over 1 year ago)
- Last Synced: 2024-04-14T09:19:01.439Z (7 months ago)
- Language: Java
- Size: 184 KB
- Stars: 4
- Watchers: 3
- Forks: 6
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/ashwanthkumar/gocd-java-client.svg?branch=master)](https://travis-ci.org/ashwanthkumar/gocd-java-client)
# gocd-java-client[![Maven Central](https://maven-badges.herokuapp.com/maven-central/in.ashwanthkumar/gocd-java-client/badge.svg)](https://maven-badges.herokuapp.com/maven-central/in.ashwanthkumar/gocd-java-client)
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
```java
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 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](https://github.com/ashwanthkumar/gocd-janitor)
and [gocd-slack-build-notifier](https://github.com/ashwanthkumar/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