Replies: 2 comments 4 replies
-
Is it not easier to include them as a file? Try the |
Beta Was this translation helpful? Give feedback.
0 replies
-
I can answer my own question. I found the problem. The example here https://github.com/rfennell/AzurePipelines/tree/main/SampleTemplates/XplatGenerateReleaseNotes%20(Node%20based)/Version%203#custom-extensions is not correct, at least not for inline scripts. It has to be a comma that separates the functions and not a semicolon. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've struggling to configure multiple JavaScript functions as inline code in the GenerateReleaseNotes task in my release definition, but it seems it's not supported, or is it?
Having the following code (removed all line breaks too):
customHandlebarsExtensionCode: 'module.exports = { getReleaseModule: function () {return process.env.ReleaseModule;}; getReleaseVersion: function () {return process.env.BUILD_VERSION;};};'
I get either "Unexpected token ;" errors if I have bracket after function, or "Unexpected identifier" if I have not.
Beta Was this translation helpful? Give feedback.
All reactions