Sending http command when build failed
Hi, I want to send a command like http://x.x.x.x/Set.cmd?CMD=SetPower+P60=1 while a task of a project is failing.
Do I need to write a plugin or I can add this to an existing standard notifier in TeamCity?
Thanks Ste
Please sign in to leave a comment.
Stephane,
Most probably you will need a plugin for that (other approach is to send the command from your build script).
There are several plugins available that use HTTP requests as notification events, but they are aimed for specific services: see "Notification" section on TeamCity plugins page.
I guess it should be quite easy to adapt them for performing a specific HTTP request.
--
Best regards,
Yegor Yarko
Project Manager (TeamCity)
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Thanks a lot for the answer!
Do you know if the status about the tasks of a project are available somewhere on the server? Maybe a custom application might get the information and send the http command...
Thanks
Ste
Stephane,
Automatically retrieving the status of a build configuration from the server can be not a trivial task and the proper way to achive this is writing own plugin that wil provide the information in the appropriate format.
Without the plugin you can try to parse HTML generated by external status widget or try to parse RSS feed.
I'd say that for issuing an HTTP command after a build the most appropriate approach would be writing a dedicated plugin for TeamCity.