Instantly share code, notes, and snippets.

What would you like to do?
Powershell script to disable ARC on an Octopus project
# You can get this dll from your Octopus Server/Tentacle installation directory or from
Add-Type -Path 'C:\Program Files\Octopus Deploy\Tentacle\Octopus.Client.dll'
$apikey = 'API-CHANGEME' # Get this from your profile
$octopusURI = 'http://localhost:8065' # Your server address
$projectName = 'A new project' # The namne of the project you want to disable ARC on
$endpoint = new-object Octopus.Client.OctopusServerEndpoint $octopusURI,$apikey
$repository = new-object Octopus.Client.OctopusRepository $endpoint
$project = $repository.Projects.FindByName($projectName)
$project.AutoCreateRelease = $false
$project.ReleaseCreationStrategy.ChannelId = $null
$project.ReleaseCreationStrategy.ReleaseCreationPackageStepId = $null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment