The following script:
Write-Host 'start’
Write-Host $OctopusPackageName
Write-Host $OctopusPackageVersion
Write-Host $OctopusPackageNameAndVersion
Write-Host $OctopusEnvironmentName
Write-Host ‘end’
Has the following output:
start
end
Variables that I pass through with the “-v” switch are available.
Do you need to do something special to enable them?
Hi Rob,
They aren’t available automatically (because the script is being run directly rather than via a package deployment), however you can pass them manually:
tentacle.exe [....] -v OctopusPackageName="MyPackage" -v OctopusEnvironmentName="Production"
Hope that helps,
Paul
Hey Paul, figured as much. Thanks.
David
Hi David,
I have no idea why I wrote “Hi Rob” on that last email, I must have been reading something else at the time. Please accept my sincere apologies.
Paul
Ha ha, no worries. I chalked it up to the crazy hours you seem to pull. Thanks for the quick response.