Failed build trigger in team city TeamCity

烂漫一生 提交于 2019-12-04 18:26:02

问题


Is it possible to Trigger an exe to run on a failed build? Can you do this within Team City?


回答1:


If you specifically want the failed builds, you can set up the dependent build as Eric said, and have that secondary buildscript use the REST API to pull up a list of the failed builds for the actual project.

If the latest build is in that failed builds list, then tell the build script to run the executable. If not, then you're all done!

http://confluence.jetbrains.net/display/TW/REST+API+Plugin




回答2:


I don't think it's possible to trigger an executable to run only on failed TeamCity builds. TeamCity usually allows you to do things either always or only upon successful builds.

It would be possible to trigger an executable to run after this build is finished (failed or successful).

If that would work for you, you could set up a new build configuration that runs the executable. The new build configuration would have a "finish build" trigger. This would cause the executable to be run whenever the other build is completed.



来源:https://stackoverflow.com/questions/4671888/failed-build-trigger-in-team-city-teamcity

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!