gocd-ci-plugin

Octane CI plugin for GOCD

License

License

GroupId

GroupId

com.hpe.adm.octane.ciplugins
ArtifactId

ArtifactId

gocd-ci-plugin
Last Version

Last Version

1.7
Release Date

Release Date

Type

Type

jar
Description

Description

gocd-ci-plugin
Octane CI plugin for GOCD
Project URL

Project URL

https://github.com/mautini/schemaorg-java
Source Code Management

Source Code Management

https://github.com/MicroFocus/octane-gocd-plugin

Download gocd-ci-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.hpe.adm.octane.ciplugins/gocd-ci-plugin/ -->
<dependency>
    <groupId>com.hpe.adm.octane.ciplugins</groupId>
    <artifactId>gocd-ci-plugin</artifactId>
    <version>1.7</version>
</dependency>
// https://jarcasting.com/artifacts/com.hpe.adm.octane.ciplugins/gocd-ci-plugin/
implementation 'com.hpe.adm.octane.ciplugins:gocd-ci-plugin:1.7'
// https://jarcasting.com/artifacts/com.hpe.adm.octane.ciplugins/gocd-ci-plugin/
implementation ("com.hpe.adm.octane.ciplugins:gocd-ci-plugin:1.7")
'com.hpe.adm.octane.ciplugins:gocd-ci-plugin:jar:1.7'
<dependency org="com.hpe.adm.octane.ciplugins" name="gocd-ci-plugin" rev="1.7">
  <artifact name="gocd-ci-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.hpe.adm.octane.ciplugins', module='gocd-ci-plugin', version='1.7')
)
libraryDependencies += "com.hpe.adm.octane.ciplugins" % "gocd-ci-plugin" % "1.7"
[com.hpe.adm.octane.ciplugins/gocd-ci-plugin "1.7"]

Dependencies

compile (5)

Group / Artifact Type Version
commons-logging : commons-logging jar 1.2
cd.go.plugin : go-plugin-api jar 17.9.0
com.hpe.adm.octane.ciplugins : integrations-sdk jar 1.5.3
com.google.code.gson : gson jar 2.8.2
org.apache.httpcomponents : httpclient jar 4.5.2

Project Modules

There are no modules declared in this project.

MICROFOCUS LOGO

Project status: Build status

Master release status: Build status

Relevant links

ALM Octane GoCD plugin

This plugin integrates GoCD with ALM Octane, enabling ALM Octane to display GoCD pipelines, trigger pipeline runs, and track build and test run results, as well as committed changes.

Note: You can connect your GoCD server to only one Space in ALM Octane. The same GoCD server cannot connect to multiple spaces or ALM Octane instances.

Requirements

This plugin requires GoCD version 17.9 or later.

Before you install the plugin, obtain an API Access Client ID and Client secret from your ALM Octane’s shared space admin.
The plugin uses these for authentication when communicating with ALM.

How to install

Install this plugin on your GoCD server:

  1. Download the plugin’s .jar file and store it on your GoCd server in <go-server-directory>/plugins/external/.

  2. Restart your GoCD server.

  3. Configure the plugin to connect to ALM Octane:

    1. In GoCD, open Admin > Plugins: You should see the ALM Octane GoCD Plugin. Click the cogwheel in front of it.
    2. Enter the The URL of the ALM Octane server, using its fully qualified domain name (FQDN).
      Use the following format (port is optional): http://hostname:port/ui/?p=<SpaceID>. Example: http://myServer.myCompany.com:8081/ui/?p=1002
      Tip: You can copy the URL from the address bar of the browser in which you opened ALM Octane.
    3. Enter the API Access Client ID and Client Secret that the plugin should use to access ALM Octane.
    4. Set the GoCD API Username and GoCD API Password. These are the credentials the plugin uses to access the GoCD server.
    5. When you save your settings, the plugin tests the connections to ALM Octane and to the GoCD server. If the connections succeed, the settings are saved, otherwise you are notified of the problem.
  4. In ALM Octane, add your GoCD server as a CI Server:
    In ALM Octane click the Settings cogwheel and select Spaces. (DevOps permissions are required)

    1. Open the DevOps tab and select the CI Servers section.
    2. Click + to add a new CI Server.
    3. Select your GoCD server from the dropdown list, provide a name for the CI server and save.
    4. With the GoCD server is added to the list in the CI servers section. You can see its name, instance ID, server type, URL, connection status and SDK version.

You can now add GoCD pipelines in ALM Octane.

Connecting GoCD pipelines to ALM Octane

This GoCD plugin provides ALM Octane with information about pipeline runs and enables triggering a pipeline run from ALM Octane.

The plugin notifies ALM Octane when a pipeline run starts, sending also an estimated run duration.

When a pipeline run ends, the plugin sends ALM Octane the build duration, build stability, test results and SCM changes.

In ALM Octane, you can trigger a pipeline run or track and analyse the pipeline run information provided by the plugin.

Test run results

Make sure to declare your xml-report-files as artifacts or your build.

This enables the plugin to locate the test results, convert them to a format that the ALM Octane recognizes, and send the test results to ALM Octane.

The plugin supports only test results in the following formats:

  • JUnit
  • NUnit 2.5
  • NUnit 3.0

Contribute to the GOCD plugin

  • Contributions of code are always welcome!
  • Follow the standard GIT workflow: Fork, Code, Commit, Push and start a Pull request
  • Each pull request will be tested, pass static code analysis and code review results.
  • All efforts will be made to expedite this process.

Guidelines

  • Document your code – it enables others to continue the great work you did on the code and update it.

Feel free to contact us on any question related to contributions - [email protected]

Disclaimer

Certain versions of software accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the software is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.

com.hpe.adm.octane.ciplugins

Micro Focus

Versions

Version
1.7