Pipes in $OctopusParameters

I would like to do this:
$releaseNotes = $OctopusParameters[“Octopus.Release.Notes|Markdown”]

Instead of this:
$releaseNotes = @"
#{Octopus.Release.Notes|Markdown}
"@

But it appears not to work. Is there any way to use pipes in $OctopusParameters?

Hi Matthew,

Thanks for getting in touch! The pipe filters are only supported during variable substitution (i.e. #{Variable} syntax). I’ve done some testing to see if I could get it working with $OctopusParameters though I didn’t have any luck unfortunately. Is there a specific reason why using the markdown filter during substitution isn’t ideal in your scenario? Perhaps knowing more about your requirements would help us find a more out of the box solution. :slight_smile:

Sorry it’s not the news you were after!

Best regards,

Kenny

It’s not super important, it’s just that the multiline

$releaseNotes = @"
#{Octopus.Release.Notes|Markdown}
"@

is more awkward to use than $OctopusParameters[“Octopus.Release.Notes|Markdown”] would be.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.