PowerShell Scripts that can be used independently or with Team Build vNext
Creates a new Release in Octopus Deploy.
-
Include the
CreateOctopusRelease.ps1
file in your project or solution -
Add the PowerShell build step to your build definition.
-
Set the Script filename field by locating the
CreateOctopusRelease.ps1
file in your repository -
Set the following parameters in the Arguments field:
-apiKey API-LNVK9KXXXXXXXXXXXOAYZS -octopusUrl http://my-octopus-server -octopusProjectId projects-1
-apiKey
- Your API Key (See documentation for details on how to create an API Key)-octopusUrl
- The URL that points to your Octopus Deploy server-octopusProjectId
- The Id of the project you want to create a release for