OctopusDeploy/Octopus-Tools — pull request #23 by lisac (2012-10-15 16:38:23+00:00)
Title: Added new command list-latestdeployments

Octo.exe list-latestdeployments --project=... --server=... --apikey=...

Given the name of a project, output details of its most-recent Deployment for each environment.
Details include properties of the associated Release and Task.
Uses /api/projects/{project-id}/most-recent-deployment

Sample output:

C:\OctopusTools>bin\Octo.exe list-latestdeployments --project="My Project" --server=... --apikey=...
Octopus Command Line Tool, version 1.0.0.0

Finding project: "My Project"
Handshaking with Octopus server: http://.../api
Handshake successful. Octopus version: 1.0.31.1366; API version: 1.0.0
Finding most recent deployments...
- Environment: Live
Date: 8/15/2012 9:04:51 PM
Duration: 00:03:54
State: Success
Version: 2.0.4814.1
Assembled: 8/15/2012 7:38:30 PM
Package Versions: Package.One 2.0.4814.71434; Package.Two 2.0.4814.71434
Release Notes: My Project Version 2.0.4814

- Environment: Staging
Date: 9/26/2012 7:36:25 PM
Duration: 00:04:02
State: Success
Version: 2.0.5220.1
Assembled: 9/26/2012 3:01:38 PM
Package Versions: Package.One 2.0.5220.72529; Package.Two 2.0.5220.72529
Release Notes: My Project Version 2.0.5220

- Environment: Test
Date: 10/3/2012 2:32:21 PM
Duration: 00:03:42
State: Failed
Version: 2.0.5257.1
Assembled: 10/2/2012 11:25:37 PM
Package Versions: Package.One 2.0.5257.72682; Package.Two 2.0.5257.72682
Release Notes: My Project Version 2.0.5257