You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to construct a message template with github link to pull request/branch with the PR/branch name. Currently I was able to achieve this by constructing the template like
The URL constructed for master builds are wrong because {%teamcity.build.branch%} will be master but I need tree/master it is pull/1 when the build starts for a pull request and so works fine for PR but not for master.
{changes} is empty when the build starts
{%teamcity.pullRequest.title%} is empty when build runs against a branch
But I feel like I will be able to solve most of the above problems(at least hack around) if template supports if else elseif blocks. May be support for freemarker?
I know there are other forked repos with this feature, but I think this plugin works fine and no issues at all, just that a feature is missing.
The text was updated successfully, but these errors were encountered:
I want to construct a message template with github link to pull request/branch with the PR/branch name. Currently I was able to achieve this by constructing the template like
But I have few issues with this
{%teamcity.build.branch%}
will bemaster
but I needtree/master
it ispull/1
when the build starts for a pull request and so works fine for PR but not for master.{changes}
is empty when the build starts{%teamcity.pullRequest.title%}
is empty when build runs against a branchBut I feel like I will be able to solve most of the above problems(at least hack around) if template supports
if else elseif
blocks. May be support for freemarker?I know there are other forked repos with this feature, but I think this plugin works fine and no issues at all, just that a feature is missing.
The text was updated successfully, but these errors were encountered: