I have a build created where I’m trying to pass the commit messages as the Release Notes into Octopus Deploy via the “Create Release” event and it doesn’t seem to be evaluating the expressions associated with the build. Whatever I type into the “Release Notes” field is added verbatim to the Release Notes of Octopus Deploy, so I know that the data is being passed over, but the expressions aren’t evaluating.
I tried a bunch of different variations of the expression, but nothing seems to work. As an example of something I completely expected to work was setting the field to:
$Build.Version$
That variable is also used in the “Default Package Version” field on the same screen and it seems to be properly evaluated in that part of the screen, but in the Release Notes area of Octopus after the build is created, it literally says:
$Build.Version$
I also changed the value in the field to a variable from the project and that doesn’t seem to work either.
In the “Create Options” tab, I have the following:
Build Event: On Build Completed
Build Status: Successful
Wait for Results: Checked
Fail Build on Error: Not Checked
Log Build Messages: Checked
Ideally, I want to set the Release Notes to the following, so that the commit messages are passed into Octopus, which is then integrated with Jira.
$Source.bluetick_app.Changesets.Select(“comment”).Join(“\n”)$
Anyone have any ideas?