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
- Big fixes in javascript for selecting correct template
- Style changes for Webhook list page (index.html)
- Added Template renderer (still not actually rendering from a build)
Loggers.SERVER.info(this.getClass().getSimpleName() + " :: Templates list is " + this.orderedTemplateCollection.size() + " items long. Templates are ranked in the following order..");
54
54
for (WebHookTemplatepl : this.orderedTemplateCollection){
Copy file name to clipboardexpand all lines: tcwebhooks-core/src/main/java/webhook/teamcity/payload/template/LegacyDeprecatedFormatWebHookTemplate.java
template.default={ "text": "All your build failures are belong to us", "attachments": [ { "fallback": "${buildName} <${buildStatusUrl}|build #${buildNumber}> triggered by ${triggeredBy} has a status of ${buildResult}", "text": "${buildName} <${buildStatusUrl}|build #${buildNumber}> triggered by ${triggeredBy} has a status of ${buildResult}", "color": "danger" }]}
1
+
template.buildFailed={ "text": "All your build failures are belong to us", "attachments": [ { "fallback": "${buildName} <${buildStatusUrl}|build #${buildNumber}> triggered by ${triggeredBy} has a status of ${buildResult}", "text": "${buildName} <${buildStatusUrl}|build #${buildNumber}> triggered by ${triggeredBy} has a status of ${buildResult}", "color": "danger" }]}
2
+
template.buildFailed.branch={ "text": "All your build failures are belong to us", "attachments": [ { "fallback": "${buildName} <${buildStatusUrl}|build #${buildNumber}> branch: ${branchName} triggered by ${triggeredBy} has a status of ${buildResult}", "text": "${buildName} <${buildStatusUrl}|build #${buildNumber}> branch: ${branchName} triggered by ${triggeredBy} has a status of ${buildResult}", "color": "danger" }]}
2
3
template.buildSuccessful={ "text": "All your build successes should to be celebrated", "attachments": [ { "fallback": "${buildName} <${buildStatusUrl}|build #${buildNumber}> triggered by ${triggeredBy} has a status of ${buildResult}", "text": "${buildName} <${buildStatusUrl}|build #${buildNumber}> triggered by ${triggeredBy} has a status of ${buildResult}", "color": "good" } ] }
3
-
template.buildSuccessful.branch={ "text": "All your build successes should to be celebrated", "attachments": [ { "fallback": "${buildName} <${buildStatusUrl}|build #${buildNumber}> triggered by ${triggeredBy} has a status of ${buildResult}", "text": "${buildName} <${buildStatusUrl}|build #${buildNumber}> triggered by ${triggeredBy} has a status of ${buildResult}", "color": "good" } ] }
4
+
template.buildSuccessful.branch={ "text": "All your build successes should to be celebrated", "attachments": [ { "fallback": "${buildName} <${buildStatusUrl}|build #${buildNumber}> branch: ${branchName} triggered by ${triggeredBy} has a status of ${buildResult}", "text": "${buildName} <${buildStatusUrl}|build #${buildNumber}> branch: ${branchName} triggered by ${triggeredBy} has a status of ${buildResult}", "color": "good" } ] }
Copy file name to clipboardexpand all lines: tcwebhooks-web-ui/src/main/java/webhook/teamcity/extension/bean/template/RegisteredWebHookTemplateBean.java
+9-9
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,8 @@ public Map<String, SimpleTemplate> getTemplateMap() {
0 commit comments