We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've probed with somenthing like that...
Get-OctoVariable -Project $proyectName | Where-Object { $.Name -like $nameVariable -and $.Machine -like $nameTarget } | Remove-OctoVariable -Project $proyectName
The text was updated successfully, but these errors were encountered:
I'm not sure. Can you try
$variables = Get-OctoVariable -Project $proyectName | Where-Object { $.Name -like $nameVariable} foreach ($var in $variables) { foreach ($key in $var.Scope) { if ($key -eq [Octopus.Client.Model.ScopeField]::Machine -and $var.Scope[$key] -eq $nameTarget) { # delete } } }
Sorry, something went wrong.
Swoogan
No branches or pull requests
I've probed with somenthing like that...
Get-OctoVariable -Project$proyectName | Where-Object { $ .Name -like $nameVariable -and $.Machine -like $nameTarget } | Remove-OctoVariable -Project $proyectName
The text was updated successfully, but these errors were encountered: