Summary
Gets the Go.CD build history, including the repository modifications that caused the pipeline to start.
Syntax
public GoCDHistoryInfo GetHistory(string username, string password, string serverUrl)
Examples
if (BuildSystem.GoCD.IsRunningOnGoCD)
{
var history = BuildSystem.GoCD.GetHistory("user", "password", "https://gocd.example.com");
}
Parameters
| Name |
Type |
Description |
| username |
string |
The Go.CD username. |
| password |
string |
The Go.CD password. |
| serverUrl |
string |
The Go.CD server URL. |
Return Value