Skip to content

Example Webhook Output XML

netwolfuk edited this page Apr 10, 2016 · 1 revision

The following shows an example payload sent by the tcWebHooks plugin when using the XML format.

 <build>
  <buildStatus>Compilation error: javac2</buildStatus>
  <buildResult>failure</buildResult>
  <buildResultPrevious>failure</buildResultPrevious>
  <buildResultDelta>unchanged</buildResultDelta>
  <notifyType>buildFinished</notifyType>
  <buildFullName>tcPlugins :: TeamCity Rest API 9.1</buildFullName>
  <buildName>TeamCity Rest API 9.1</buildName>
  <buildId>746</buildId>
  <buildTypeId>TcPlugins_TeamCityRestApi91</buildTypeId>
  <buildInternalTypeId>bt11</buildInternalTypeId>
  <buildExternalTypeId>TcPlugins_TeamCityRestApi91</buildExternalTypeId>
  <buildStatusUrl>http://ubuntu-teamcity-01:8111//viewLog.html?buildTypeId=TcPlugins_TeamCityRestApi91&amp;buildId=746</buildStatusUrl>
  <buildStatusHtml>&lt;span class=&quot;tcWebHooksMessage&quot;&gt;&lt;a href=&quot;http://ubuntu-teamcity-01:8111//project.html?projectId=TcPlugins&quot;&gt;tcPlugins&lt;/a&gt; :: &lt;a href=&quot;http://ubuntu-teamcity-01:8111//viewType.html?buildTypeId=TcPlugins_TeamCityRestApi91&quot;&gt;TeamCity Rest API 9.1&lt;/a&gt; # &lt;a href=&quot;http://ubuntu-teamcity-01:8111//viewLog.html?buildTypeId=TcPlugins_TeamCityRestApi91&amp;buildId=746&quot;&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/a&gt; has &lt;strong&gt;finished&lt;/strong&gt; with a status of &lt;a href=&quot;http://ubuntu-teamcity-01:8111//viewLog.html?buildTypeId=TcPlugins_TeamCityRestApi91&amp;buildId=746&quot;&gt; &lt;strong&gt;failure&lt;/strong&gt;&lt;/a&gt; and was triggered by &lt;strong&gt;netwolfuk&lt;/strong&gt;&lt;/span&gt;</buildStatusHtml>
  <rootUrl>http://ubuntu-teamcity-01:8111/</rootUrl>
  <projectName>tcPlugins</projectName>
  <projectId>TcPlugins</projectId>
  <projectInternalId>project1</projectInternalId>
  <projectExternalId>TcPlugins</projectExternalId>
  <buildNumber>2</buildNumber>
  <agentName>Default Agent</agentName>
  <agentOs>Linux, version 3.11.0-15-generic</agentOs>
  <agentHostname>localhost</agentHostname>
  <triggeredBy>netwolfuk</triggeredBy>
  <message>Build tcPlugins :: TeamCity Rest API 9.1 has finished. This is build number 2, has a status of &quot;failure&quot; and was triggered by netwolfuk</message>
  <text>tcPlugins :: TeamCity Rest API 9.1 has finished. Status: failure</text>
  <buildStateDescription>finished</buildStateDescription>
  <buildRunners>
    <string>Ant</string>
  </buildRunners>
  <buildTags/>
  <extraParameters>
    <body.failed>{ &quot;text&quot;: &quot;oh no!, we failed&quot;}</body.failed>
    <body.passed>{ &quot;text&quot;: &quot;woot!, we passed&quot;}</body.passed>
  </extraParameters>
  <teamcityProperties>
    <build.counter>2</build.counter>
    <build.number>2</build.number>
    <build.vcs.number>8196</build.vcs.number>
    <build.vcs.number.1>8196</build.vcs.number.1>
    <build.vcs.number.TcPlugins__JetbrainsTeamcitySvn>8196</build.vcs.number.TcPlugins__JetbrainsTeamcitySvn>
    <env.BUILD__NUMBER>2</env.BUILD__NUMBER>
    <env.BUILD__VCS__NUMBER>8196</env.BUILD__VCS__NUMBER>
    <env.BUILD__VCS__NUMBER__TcPlugins__JetbrainsTeamcitySvn>8196</env.BUILD__VCS__NUMBER__TcPlugins__JetbrainsTeamcitySvn>
    <env.GEM__HOME>/home/netwolfuk/.rvm/gems/ruby-1.9.3-p545</env.GEM__HOME>
    <env.GEM__PATH>/home/netwolfuk/.rvm/gems/ruby-1.9.3-p545:/home/netwolfuk/.rvm/gems/ruby-1.9.3-p545@global</env.GEM__PATH>
    <env.HOME>/home/netwolfuk</env.HOME>
    <env.IRBRC>/home/netwolfuk/.rvm/rubies/ruby-1.9.3-p545/.irbrc</env.IRBRC>
    <env.JAVA__HOME>/opt/Java/jdk1.8.0_65</env.JAVA__HOME>
    <env.JDK__16>/opt/java/jdk1.6.0_33</env.JDK__16>
    <env.JDK__18>/opt/Java/jdk1.8.0_65</env.JDK__18>
    <env.JDK__18__x64>/opt/Java/jdk1.8.0_65</env.JDK__18__x64>
    <env.JDK__HOME>/opt/Java/jdk1.8.0_65</env.JDK__HOME>
    <env.JRE__HOME>/opt/Java/jdk1.8.0_65</env.JRE__HOME>
    <env.LANG>en_NZ.UTF-8</env.LANG>
    <env.LANGUAGE>en_NZ:en</env.LANGUAGE>
    <env.LESSCLOSE>/usr/bin/lesspipe %s %s</env.LESSCLOSE>
    <env.LESSOPEN>| /usr/bin/lesspipe %s</env.LESSOPEN>
    <env.LOGNAME>netwolfuk</env.LOGNAME>
    <env.LS__COLORS>rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:</env.LS__COLORS>
    <env.MAIL>/var/mail/netwolfuk</env.MAIL>
    <env.MY__RUBY__HOME>/home/netwolfuk/.rvm/rubies/ruby-1.9.3-p545</env.MY__RUBY__HOME>
    <env.NLSPATH>/usr/dt/lib/nls/msg/%L/%N.cat</env.NLSPATH>
    <env.NODE__PATH>/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript</env.NODE__PATH>
    <env.OLDPWD>/opt/TeamCity/buildAgent/bin</env.OLDPWD>
    <env.PATH>/home/netwolfuk/.rvm/gems/ruby-1.9.3-p545/bin:/home/netwolfuk/.rvm/gems/ruby-1.9.3-p545@global/bin:/home/netwolfuk/.rvm/rubies/ruby-1.9.3-p545/bin:/opt/Java/jdk1.8.0_65/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/netwolfuk/.rvm/bin</env.PATH>
    <env.PWD>/opt/TeamCity/buildAgent/bin</env.PWD>
    <env.SHELL>/bin/bash</env.SHELL>
    <env.SHLVL>1</env.SHLVL>
    <env.SSH__CLIENT>192.168.1.20 60849 22</env.SSH__CLIENT>
    <env.SSH__CONNECTION>192.168.1.20 60849 172.16.1.72 22</env.SSH__CONNECTION>
    <env.SSH__TTY>/dev/pts/0</env.SSH__TTY>
    <env.TEAMCITY__BUILDCONF__NAME>TeamCity Rest API 9.1</env.TEAMCITY__BUILDCONF__NAME>
    <env.TEAMCITY__BUILD__PROPERTIES__FILE>/opt/TeamCity-9.1.3/TeamCity/buildAgent/temp/buildTmp/teamcity.build3231890753081482524.properties</env.TEAMCITY__BUILD__PROPERTIES__FILE>
    <env.TEAMCITY__CAPTURE__ENV>&quot;/opt/Java/jdk1.8.0_65/jre/bin/java&quot; -jar &quot;/opt/TeamCity-9.1.3/TeamCity/buildAgent/plugins/environment-fetcher/bin/env-fetcher.jar&quot;</env.TEAMCITY__CAPTURE__ENV>
    <env.TEAMCITY__GIT__PATH>/usr/bin/git</env.TEAMCITY__GIT__PATH>
    <env.TEAMCITY__PROJECT__NAME>tcPlugins</env.TEAMCITY__PROJECT__NAME>
    <env.TEAMCITY__SERVER__MEM__OPTS>-Xmx512m -XX:MaxPermSize=270m -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n</env.TEAMCITY__SERVER__MEM__OPTS>
    <env.TEAMCITY__VERSION>9.1.3 (build 37176)</env.TEAMCITY__VERSION>
    <env.TEMP>/opt/TeamCity-9.1.3/TeamCity/buildAgent/temp/buildTmp</env.TEMP>
    <env.TERM>xterm</env.TERM>
    <env.TMP>/opt/TeamCity-9.1.3/TeamCity/buildAgent/temp/buildTmp</env.TMP>
    <env.TMPDIR>/opt/TeamCity-9.1.3/TeamCity/buildAgent/temp/buildTmp</env.TMPDIR>
    <env.USER>netwolfuk</env.USER>
    <env.XDG__SESSION__COOKIE>5363a53ca15ab152ce5c5b170000018a-1455435949.311988-1467593676</env.XDG__SESSION__COOKIE>
    <env.XFILESEARCHPATH>/usr/dt/app-defaults/%L/Dt</env.XFILESEARCHPATH>
    <env.__>./runAll.sh</env.__>
    <env.__system__arch>x86_64</env.__system__arch>
    <env.__system__name>Ubuntu</env.__system__name>
    <env.__system__type>Linux</env.__system__type>
    <env.__system__version>12.04</env.__system__version>
    <env.rvm__bin__path>/home/netwolfuk/.rvm/bin</env.rvm__bin__path>
    <env.rvm__path>/home/netwolfuk/.rvm</env.rvm__path>
    <env.rvm__prefix>/home/netwolfuk</env.rvm__prefix>
    <env.rvm__version>1.25.22 (stable)</env.rvm__version>
    <env.teamcity.distribution>/opt/TeamCity</env.teamcity.distribution>
    <rvm.rubies.list>ruby-1.9.3-p545</rvm.rubies.list>
    <system.agent.home.dir>/opt/TeamCity-9.1.3/TeamCity/buildAgent</system.agent.home.dir>
    <system.agent.name>Default Agent</system.agent.name>
    <system.agent.work.dir>/opt/TeamCity-9.1.3/TeamCity/buildAgent/work</system.agent.work.dir>
    <system.build.number>2</system.build.number>
    <system.build.vcs.number>8196</system.build.vcs.number>
    <system.build.vcs.number.1>8196</system.build.vcs.number.1>
    <system.build.vcs.number.TcPlugins__JetbrainsTeamcitySvn>8196</system.build.vcs.number.TcPlugins__JetbrainsTeamcitySvn>
    <system.java.io.tmpdir>/opt/TeamCity-9.1.3/TeamCity/buildAgent/temp/buildTmp</system.java.io.tmpdir>
    <system.jdk6>/opt/java/jdk1.6.0_33</system.jdk6>
    <system.jdk7>/opt/java/jdk1.7.0_51</system.jdk7>
    <system.jdk8>/opt/java/jdk1.8.0_65</system.jdk8>
    <system.path.macro.TeamCityDistribution>/opt/TeamCity</system.path.macro.TeamCityDistribution>
    <system.teamcity.agent.cpuBenchmark>591</system.teamcity.agent.cpuBenchmark>
    <system.teamcity.agent.dotnet.agent__url>http://localhost:9090/RPC2</system.teamcity.agent.dotnet.agent__url>
    <system.teamcity.agent.dotnet.build__id>746</system.teamcity.agent.dotnet.build__id>
    <system.teamcity.auth.password>ZObmMT46thP7HcTC9OoqJ65V68VLkkM6</system.teamcity.auth.password>
    <system.teamcity.auth.userId>TeamCityBuildId=746</system.teamcity.auth.userId>
    <system.teamcity.build.changedFiles.file>/opt/TeamCity-9.1.3/TeamCity/buildAgent/temp/buildTmp/changedFiles8372586694904298650.txt</system.teamcity.build.changedFiles.file>
    <system.teamcity.build.checkoutDir>/opt/TeamCity-9.1.3/TeamCity/buildAgent/work/22fcbd783f91fe04</system.teamcity.build.checkoutDir>
    <system.teamcity.build.properties.file>/opt/TeamCity-9.1.3/TeamCity/buildAgent/temp/buildTmp/teamcity.build3231890753081482524.properties</system.teamcity.build.properties.file>
    <system.teamcity.build.tempDir>/opt/TeamCity-9.1.3/TeamCity/buildAgent/temp/buildTmp</system.teamcity.build.tempDir>
    <system.teamcity.buildConfName>TeamCity Rest API 9.1</system.teamcity.buildConfName>
    <system.teamcity.buildType.id>TcPlugins_TeamCityRestApi91</system.teamcity.buildType.id>
    <system.teamcity.configuration.properties.file>/opt/TeamCity-9.1.3/TeamCity/buildAgent/temp/buildTmp/teamcity.config1599709279372197197.properties</system.teamcity.configuration.properties.file>
    <system.teamcity.projectName>tcPlugins</system.teamcity.projectName>
    <system.teamcity.runner.properties.file>/opt/TeamCity-9.1.3/TeamCity/buildAgent/temp/buildTmp/teamcity.runner1335088664752358284.properties</system.teamcity.runner.properties.file>
    <system.teamcity.tests.recentlyFailedTests.file>/opt/TeamCity-9.1.3/TeamCity/buildAgent/temp/buildTmp/testsToRunFirst855524315426474870.txt</system.teamcity.tests.recentlyFailedTests.file>
    <system.teamcity.version>9.1.3 (build 37176)</system.teamcity.version>
    <teamcity.agent.hardware.cpuCount>2</teamcity.agent.hardware.cpuCount>
    <teamcity.agent.hardware.memorySizeMb>2001</teamcity.agent.hardware.memorySizeMb>
    <teamcity.agent.home.dir>/opt/TeamCity-9.1.3/TeamCity/buildAgent</teamcity.agent.home.dir>
    <teamcity.agent.jvm.file.encoding>UTF-8</teamcity.agent.jvm.file.encoding>
    <teamcity.agent.jvm.file.separator>/</teamcity.agent.jvm.file.separator>
    <teamcity.agent.jvm.os.arch>amd64</teamcity.agent.jvm.os.arch>
    <teamcity.agent.jvm.os.name>Linux</teamcity.agent.jvm.os.name>
    <teamcity.agent.jvm.os.version>3.11.0-15-generic</teamcity.agent.jvm.os.version>
    <teamcity.agent.jvm.path.separator>:</teamcity.agent.jvm.path.separator>
    <teamcity.agent.jvm.specification>1.8</teamcity.agent.jvm.specification>
    <teamcity.agent.jvm.user.country>NZ</teamcity.agent.jvm.user.country>
    <teamcity.agent.jvm.user.home>/home/netwolfuk</teamcity.agent.jvm.user.home>
    <teamcity.agent.jvm.user.language>en</teamcity.agent.jvm.user.language>
    <teamcity.agent.jvm.user.name>netwolfuk</teamcity.agent.jvm.user.name>
    <teamcity.agent.jvm.user.timezone>Pacific/Auckland</teamcity.agent.jvm.user.timezone>
    <teamcity.agent.jvm.version>1.8.0_65</teamcity.agent.jvm.version>
    <teamcity.agent.launcher.version>37176</teamcity.agent.launcher.version>
    <teamcity.agent.name>Default Agent</teamcity.agent.name>
    <teamcity.agent.ownPort>9090</teamcity.agent.ownPort>
    <teamcity.agent.protocol>xml-rpc</teamcity.agent.protocol>
    <teamcity.agent.tools.dir>/opt/TeamCity-9.1.3/TeamCity/buildAgent/tools</teamcity.agent.tools.dir>
    <teamcity.agent.work.dir>/opt/TeamCity-9.1.3/TeamCity/buildAgent/work</teamcity.agent.work.dir>
    <teamcity.agent.work.dir.freeSpaceMb>42053</teamcity.agent.work.dir.freeSpaceMb>
    <teamcity.build.checkoutDir>/opt/TeamCity-9.1.3/TeamCity/buildAgent/work/22fcbd783f91fe04</teamcity.build.checkoutDir>
    <teamcity.build.default.checkoutDir>22fcbd783f91fe04</teamcity.build.default.checkoutDir>
    <teamcity.build.id>746</teamcity.build.id>
    <teamcity.build.triggeredBy>netwolfuk</teamcity.build.triggeredBy>
    <teamcity.build.triggeredBy.username>netwolfuk</teamcity.build.triggeredBy.username>
    <teamcity.dotCover.home>/opt/TeamCity-9.1.3/TeamCity/buildAgent/tools/dotCover</teamcity.dotCover.home>
    <teamcity.project.id>TcPlugins</teamcity.project.id>
    <teamcity.serverUrl>http://localhost:8111</teamcity.serverUrl>
    <teamcity.tool.ant-net-tasks>/opt/TeamCity-9.1.3/TeamCity/buildAgent/tools/ant-net-tasks</teamcity.tool.ant-net-tasks>
    <teamcity.tool.dotCover>/opt/TeamCity-9.1.3/TeamCity/buildAgent/tools/dotCover</teamcity.tool.dotCover>
    <teamcity.tool.gant>/opt/TeamCity-9.1.3/TeamCity/buildAgent/tools/gant</teamcity.tool.gant>
    <teamcity.tool.idea>/opt/TeamCity-9.1.3/TeamCity/buildAgent/tools/idea</teamcity.tool.idea>
    <teamcity.tool.jacoco>/opt/TeamCity-9.1.3/TeamCity/buildAgent/tools/jacoco</teamcity.tool.jacoco>
    <teamcity.tool.jps>/opt/TeamCity-9.1.3/TeamCity/buildAgent/tools/jps</teamcity.tool.jps>
    <teamcity.tool.jps-old>/opt/TeamCity-9.1.3/TeamCity/buildAgent/tools/jps-old</teamcity.tool.jps-old>
    <teamcity.tool.maven>/opt/TeamCity-9.1.3/TeamCity/buildAgent/tools/maven</teamcity.tool.maven>
    <teamcity.tool.maven3>/opt/TeamCity-9.1.3/TeamCity/buildAgent/tools/maven3</teamcity.tool.maven3>
    <teamcity.tool.maven3__1>/opt/TeamCity-9.1.3/TeamCity/buildAgent/tools/maven3_1</teamcity.tool.maven3__1>
    <teamcity.tool.maven3__2>/opt/TeamCity-9.1.3/TeamCity/buildAgent/tools/maven3_2</teamcity.tool.maven3__2>
    <vcsroot.TcPlugins__JetbrainsTeamcitySvn.externals-mode>externals-none</vcsroot.TcPlugins__JetbrainsTeamcitySvn.externals-mode>
    <vcsroot.TcPlugins__JetbrainsTeamcitySvn.labelingMessage>Labeled automatically by TeamCity</vcsroot.TcPlugins__JetbrainsTeamcitySvn.labelingMessage>
    <vcsroot.TcPlugins__JetbrainsTeamcitySvn.labelingPatterns>trunk=&gt;tags</vcsroot.TcPlugins__JetbrainsTeamcitySvn.labelingPatterns>
    <vcsroot.TcPlugins__JetbrainsTeamcitySvn.svn-config-directory>/home/netwolfuk/.subversion</vcsroot.TcPlugins__JetbrainsTeamcitySvn.svn-config-directory>
    <vcsroot.TcPlugins__JetbrainsTeamcitySvn.svn-use-default-config-directory>true</vcsroot.TcPlugins__JetbrainsTeamcitySvn.svn-use-default-config-directory>
    <vcsroot.TcPlugins__JetbrainsTeamcitySvn.url>http://svn.jetbrains.org/teamcity/plugins/rest-api/</vcsroot.TcPlugins__JetbrainsTeamcitySvn.url>
    <vcsroot.TcPlugins__JetbrainsTeamcitySvn.working-copy-format>1.8</vcsroot.TcPlugins__JetbrainsTeamcitySvn.working-copy-format>
    <vcsroot.externals-mode>externals-none</vcsroot.externals-mode>
    <vcsroot.labelingMessage>Labeled automatically by TeamCity</vcsroot.labelingMessage>
    <vcsroot.labelingPatterns>trunk=&gt;tags</vcsroot.labelingPatterns>
    <vcsroot.svn-config-directory>/home/netwolfuk/.subversion</vcsroot.svn-config-directory>
    <vcsroot.svn-use-default-config-directory>true</vcsroot.svn-use-default-config-directory>
    <vcsroot.url>http://svn.jetbrains.org/teamcity/plugins/rest-api/</vcsroot.url>
    <vcsroot.working-copy-format>1.8</vcsroot.working-copy-format>
    <webhook.body.failed>{ &quot;text&quot;: &quot;oh no!, we failed&quot;}</webhook.body.failed>
    <webhook.body.passed>{ &quot;text&quot;: &quot;woot!, we passed&quot;}</webhook.body.passed>
  </teamcityProperties>
  <changes>
    <webhook.teamcity.payload.content.WebHooksChanges>
      <version>8196</version>
      <change>
        <files>
          <string>trunk-protocol-9.1/src/jetbrains/buildServer/server/rest/model/group/Group.java</string>
          <string>trunk-protocol-9.1/src/jetbrains/buildServer/server/rest/model/user/User.java</string>
        </files>
        <comment>Additional permissions checks on listing users and getting user&apos;s lastLogin attribute (TW-44842), integrate from 9.1.x</comment>
        <vcsRoot>Jetbrains Teamcity SVN</vcsRoot>
        <username>yegor.yarko</username>
      </change>
    </webhook.teamcity.payload.content.WebHooksChanges>
  </changes>
</build> 
Clone this wiki locally