Is it possible to have multiple variables on one line?
I have a PowerShell script that creates either windows or SQL logins and expects the format to be “username”|“password”
If i have #{username}|#{password} within my multi line variable it will return the correct username but fails to retrieve the correct password and simply returns the text “#{password}” and so my step fails.
The step runs fine if the password is hard-coded.
Just wanted to check there was a way around this before altering the PowerShell scripts expected format.
It may be that I’ve oversimplified the test though.
If you can confirm which version of Octopus Server you’re running and share the relevant lines of your script we can re-test.
How are you using this multi-line variable? Is it part of a variable substitution or something else?
Also, are you sure that #{uk.db.developers.password} is scoped correctly for this deployment?