Build agent plugin - Lifecycle

Hi,
     I am intending to create a teamcity build agent plugin, which would listen to the builds currently running in that agent. And with build failure as trigger, the plugin would display the reason for failure - like time out issues etc.
          My question is:
               - Whether the development and deployment of a build agent plugin is similar to teamcity server plugin? Please let me know, any differences in the processes.
               - Inorder to receive the notification from the build agent regarding the build completion, Which callback method should I prefer?

Thanks in advance

5 comments
Comment actions Permalink

Reji,

> with build failure as trigger

Please note that the TeamCity-displayed decision on whether the build is failed or not is taken on the server side, not on agent.

> Whether the development and deployment of a build  agent plugin is similar to teamcity server plugin? Please let me know,  any differences in the processes.
The doc section should describe the details of plugin packaging. Feel free to ask more specific questions.

> Inorder to  receive the notification from the build agent regarding the build  completion, Which callback method should I prefer?
Please refer to the doc

0
Comment actions Permalink

Thanks a lot Yarko. Appreciated.

The reference doc was really helpful. and I am on my mission to create an agent plugin.

0
Comment actions Permalink

Hi Yegor,

      I am also trying to write an agent plugin. I reffered to the docs that you mentioned here. It really gave me a better understanding. But I was unable to create an initial sample agent plugin. Can you please provide me a sample source of an agent plugin. I just wanted to see the deployment and any of the agentside apis responding as an initial step. Also it would be really helpful for me if i get a sample which uses maven as the build tool.

Thanks in advance,
Shibu

0
Comment actions Permalink

Shibu,

Seems, this can be posted as a separate thread.

To answer your question:
You can use any open-source plugin with agent part to look how it should be configured.
E.g. see Swabra bundled plugin sources.

Also, you can use a template to generate an empty plugin to start with:
Checkout the template from Svn.
And then use the tiny tool to generate a new project with your name from it.

0
Comment actions Permalink

Yegor,

  Sorry for the delay in reply. Your pointers helped me a lot. Now I have succeeded in creating a sampe agent plugin. Thank you for your guidance.

Regards
Shibu

0

Please sign in to leave a comment.