Hi
I want to put revision number (current checkout revision which is used to build) in notificationCommonsHTML.ftl in templateOuter macro before the line "was successful" or "failed". (line 15)
I tried ${bulidSummary.revision} but no luck.
FYI: I use SVN repo and corresponding revision number for build
Please help me with this, as documentation for modifying email templates is abysmal.
Hi @Abhishek S
I don't know where you got that from, but ${bulidSummary.revision} seems like a typo (bulid vs. build) and should probably be ${buildSummary.revision}!?
Other than that I'm not aware of structurally better docs besides what I referenced in my related answer, though the Freemarker section in Freemarker and notification templates might provide a few more clues (note the "#list buildSummary.commits as commit" and "Revision: ${commit.guessChangeSetId()?html}" constructs).
Good luck,
Steffen
Thanks a lot for the reply. Actually, I tried the correct form of ${buildSummary.revision} (without any typo) but no luck.
(note the "#list buildSummary.commits as commit" and "Revision: ${commit.guessChangeSetId()?html}
The above code looks like, it only works if we have any new commits. Is there any particular package which provides revision number without including any commits?
I think this is pretty simple use case where I want to have the checkout revision inside ftl template. If any package like com.atlassian.* exposes this variable please let me know which package is that and how to use it where I can create a variable and use the functions it provides.
Please help me with this.
Thanks in advance !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.