Continuous integration 我如何在TeamCity中设置一个外部状态页面,就像他们赢得';你不需要我登录吗?

Continuous integration 我如何在TeamCity中设置一个外部状态页面,就像他们赢得';你不需要我登录吗?,continuous-integration,teamcity,Continuous Integration,Teamcity,我们刚从家搬到了家 在TeamCity中,我可以很好地使用ExternalStatus页面/小部件 在我们的房间中,我们将Cradiator()作为构建散热器和通知程序运行,我修改了TeamCity插件以返回CCNET格式的XML,以便Cradiator能够读取它 我遇到的问题是,修改后的Teampaizza页面需要身份验证,而TeamCity externalstatus页面则不需要 因此,我的问题是:如何使自定义页面不需要身份验证?您应该直接发布到支持论坛,并在这里发布答案(如果需要)。Te

我们刚从家搬到了家

在TeamCity中,我可以很好地使用ExternalStatus页面/小部件

在我们的房间中,我们将Cradiator()作为构建散热器和通知程序运行,我修改了TeamCity插件以返回CCNET格式的XML,以便Cradiator能够读取它

我遇到的问题是,修改后的Teampaizza页面需要身份验证,而TeamCity externalstatus页面则不需要


因此,我的问题是:如何使自定义页面不需要身份验证?

您应该直接发布到支持论坛,并在这里发布答案(如果需要)。

TeamCity在其开放API中提供了接口,您可以将其插入插件代码中,从而控制授权要求

这是我在写状态页面时使用的/无耻

下面是关于如何使用它的示例代码:

    /* Add the objects into the constructor and spring will make them 
       available for you */
    public StatusPageController(SBuildServer server,
            AuthorizationInterceptor authorizationInterceptor,
            UrlMapping urlMapper) {

        // Tell teamcity that auth is not required for this page.
        authorizationInterceptor.addPathNotRequiringAuth(myUrl);
如果在TeamCity中启用了,您可以使用访问页面

例如,如果您的页面是

http://buildserver/teamcity/piazza.htm
您可以通过在URL中添加/guestAuth来访问它:

http://buildserver/teamcity/guestAuth/piazza.htm