I noticed that Octopus.Client.OctopusRepository.Release contains the Method FindByName
I have tried using it but not able to acquire any result.
$endpoint = new-object Octopus.Client.OctopusServerEndpoint $octopusURI,$apikey
$repository = new-object Octopus.Client.OctopusRepository $endpoint
Am I doing anything wrong?
FindByName method on the releases repository doesn’t actually have a functionality. It only inherited it from one of the common resource interfaces.
What you should be using is
$Project is an
If you are still not using the open source project Octoposh, I highly recommend you to do so. In this case you could use
Get-OctopusRelease -ProjectName "MyProject" -ReleaseVersion "0.5.0"
Cmdlet doc: http://octoposh.readthedocs.io/en/latest/cmdlets/get-octopusdeployment/#examples