Hi there
I’m trying to execute an Azure PowerShell deployment step, which is consistently failing with the error
Split-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\ProgramData\Octopus\Work\20161013155154-9\Bootstrap.Octopus.AzureContext.ps1:1572 char:25
+ $scriptDir = Split-Path $MyInvocation.MyCommand.Path
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Split-Path], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCo
mmand
The remote script failed with exit code 1
The script that I’ve added to the deployment step is really simple:
Invoke-Psake `
-framework 4.6 `
-buildFile "Scripts\deploy.ps1" `
-properties @{ "ClusterName"=$EnvironmentShortName }
Invoke-Psake
is defined in a script module, which is a copy-paste job on this file. I get the exact same result (no output) if I add a Write-Host
statement at the start of my script.
I’ve attached the log file to this post. I’m using v3.4.10.
ServerTasks-738.log.txt (4 KB)