Skip to content

Example Webhook Output Name Value Pairs

netwolfuk edited this page Apr 10, 2016 · 1 revision

The following shows an example payload sent by the tcWebHooks plugin when using the Name Value Pairs format. The payload will be POSTed URLencoded as if sent from a form.

buildFullName=tcPlugins :: TeamCity Rest API 9.1
buildComment=null
changes=[webhook.teamcity.payload.content.WebHooksChanges@78b0ffc8]
extraParameters={body.failed={ "text": "oh no!, we failed"}, body.passed={ "text": "woot!, we passed"}}
agentOs=Linux, version 3.11.0-15-generic
buildNumber=2
branchIsDefault=null
buildResultPrevious=failure
buildStatus=Compilation error: javac2
projectInternalId=project1
buildStatusUrl=http://ubuntu-teamcity-01:8111//viewLog.html?buildTypeId=TcPlugins_TeamCityRestApi91
buildId=746
buildTypeId=TcPlugins_TeamCityRestApi91
buildRunners=[Ant]
buildTags=[]
buildStateDescription=finished
text=tcPlugins :: TeamCity Rest API 9.1 has finished. Status: failure
class=class webhook.teamcity.payload.content.WebHookPayloadContent
buildName=TeamCity Rest API 9.1
buildResult=failure
agentName=Default Agent
branchName=null
buildResultDelta=unchanged
buildId=746
message=Build tcPlugins :: TeamCity Rest API 9.1 has finished. This is build number 2, has a status of "failure" and was triggered by netwolfuk
buildExternalTypeId=TcPlugins_TeamCityRestApi91
rootUrl=http://ubuntu-teamcity-01:8111/
notifyType=buildFinished
buildInternalTypeId=bt11
comment=null
projectExternalId=TcPlugins
branchDisplayName=null
projectName=tcPlugins
projectId=TcPlugins
agentHostname=localhost
buildStatusHtml=<span class="tcWebHooksMessage"><a href="http://ubuntu-teamcity-01:8111/project.html?projectId=TcPlugins">tcPlugins</a> :: <a href="http://ubuntu-teamcity-01:8111/viewType.html?buildTypeId=TcPlugins_TeamCityRestApi91">TeamCity Rest API 9.1</a> # <a href="http://ubuntu-teamcity-01:8111/viewLog.html?buildTypeId=TcPlugins_TeamCityRestApi91&buildId=746"><strong>2</strong></a> has <strong>finished</strong> with a status of <a href="http://ubuntu-teamcity-01:8111//viewLog.html?buildTypeId=TcPlugins_TeamCityRestApi91&buildId=746"> <strong>failure</strong></a> and was triggered by <strong>netwolfuk</strong></span>
triggeredBy=netwolfuk
Clone this wiki locally