0

事件提供程序 HudsonTracPlugin 过滤器"Hudson Builds": IOError: Error从以下位置获取构建信息失败:

'http://localhost:8080/hudson/rssAll/api/python?tree=jobs[builds[building,timestamp,duration,result,description,url,fullDisplayName]]': URLError: <urlopen error [Errno 10061] >.

这很可能意味着您配置了错误的 job_url、用户名或密码。

    Event provider HudsonTracPlugin failed for filters "Hudson Builds": IOError: Error getting build info from 'http://localhost:8080/hudson/rssAll/api/python?tree=jobs[builds[building,timestamp,duration,result,description,url,fullDisplayName]]': returned document has unexpected type 'application/atom+xml' (expected 'text/x-python'). The returned text is: <?xml version="1.0" encoding="UTF-8"?> 

<feed xmlns="http://www.w3.org/2005/Atom">
    <title>All all builds</title>
    <link type="text/html" href="http://localhost:8080/hudson/" rel="alternate"/>
    <updated>2013-01-04T09:04:56Z</updated>
    <author>
    <name>Hudson Server</name>  
    </author>
    <id>urn:uuid:903deee0-7bfa-11db-9fe1-0800200c9a66</id>
    <entry>
        <title>tractest12github #9 (broken for a long time)</title>
        <link type="text/html" href="http://localhost:8080/hudson/job/tractest12github/9/" rel="alternate"/><id>tag:hudson.java.net,2013:tractest12github:2013-01-04_18-04-56</id>
        <published>2013-01-04T09:04:56Z</published>
        <updated>2013-01-04T09:04:56Z</updated>
    </entry>
    <entry>
        <title>tractest #6 (stable)</title>
        <link type="text/html" href="http://localhost:8080/hudson/job/tractest/6/" rel="alternate"/><id>tag:hudson.java.net,2013:tractest:2013-01-04_18-04-50</id>
        <published>2013-01-04T09:04:50Z</published>
        <updated>2013-01-04T09:04:50Z</updated>
    </entry>
    <entry>
        <title>tractest12github #8 (broken for a long time)</title>
        <link type="text/html" href="http://localhost:8080/hudson/job/tractest12github/8/" rel="alternate"/><id>tag:hudson.java.net,2013:tractest12github:2013-01-04_17-52-54</id>
        <published>2013-01-04T08:52:54Z</published>
        <updated>2013-01-04T08:52:54Z</updated>
    </entry>
    <entry>
        <title>tractest #5 (stable)</title>
        <link type="text/html" href="http://localhost:8080/hudson/job/tractest/5/" rel="alternate"/><id>tag:hudson.java.net,2013:tractest:2013-01-04_17-52-53</id>
        <published>2013-01-04T08:52:53Z</published>
        <updated>2013-01-04T08:52:53Z</updated>
    </entry>
    <entry>
        <title>tractest12github #7 (broken for a long time)</title>
        <link type="text/html" href="http://localhost:8080/hudson/job/tractest12github/7/" rel="alternate"/><id>tag:hudson.java.net,2013:tractest12github:2013-01-04_17-52-06</id>
        <published>2013-01-04T08:52:06Z</published>
        <updated>2013-01-04T08:52:06Z</updated>
    </entry>
    <entry>
        <title>tractest12github #6 (broken for a long time)</title>
        <link type="text/html" href="http://localhost:8080/hudson/job/tractest12github/6/" rel="alternate"/><id>tag:hudson.java.net,2013:tractest12github:2013-01-04_17-51-52</id>
        <published>2013-01-04T08:51:52Z</published>
        <updated>2013-01-04T08:51:52Z</updated>
    </entry>
    <entry>
        <title>tractest12github #5 (broken for a long time)</title>
        <link type="text/html" href="http://localhost:8080/hudson/job/tractest12github/5/" rel="alternate"/><id>tag:hudson.java.net,2013:tractest12github:2013-01-04_17-51-03</id>
        <published>2013-01-04T08:51:03Z</published>
        <updated>2013-01-04T08:51:03Z</updated>
    </entry>
    <entry>
        <title>tractest #4 (stable)</title>
        <link type="text/html" href="http://localhost:8080/hudson/job/tractest/4/" rel="alternate"/><id>tag:hudson.java.net,2013:tractest:2013-01-04_17-50-58</id>
        <published>2013-01-04T08:50:58Z</published>
        <updated>2013-01-04T08:50:58Z</updated>
    </entry>
    <entry>
        <title>tractest #3 (stable)</title>
        <link type="text/html" href="http://localhost:8080/hudson/job/tractest/3/" rel="alternate"/><id>tag:hudson.java.net,2013:tractest:2013-01-04_17-50-55</id>
        <published>2013-01-04T08:50:55Z</published>
        <updated>2013-01-04T08:50:55Z</updated>
    </entry>
    <entry>
        <title>tractest12github #4 (broken for a long time)</title>
        <link type="text/html" href="http://localhost:8080/hudson/job/tractest12github/4/" rel="alternate"/><id>tag:hudson.java.net,2013:tractest12github:2013-01-03_17-53-04</id>
        <published>2013-01-03T08:53:04Z</published>
        <updated>2013-01-03T08:53:04Z</updated>
    </entry>
    <entry>
        <title>tractest #2 (stable)</title>
        <link type="text/html" href="http://localhost:8080/hudson/job/tractest/2/" rel="alternate"/><id>tag:hudson.java.net,2013:tractest:2013-01-03_15-54-59</id>
        <published>2013-01-03T06:54:59Z</published>
        <updated>2013-01-03T06:54:59Z</updated>
    </entry>
    <entry>
        <title>tractest12github #3 (broken for a long time)</title>
        <link type="text/html" href="http://localhost:8080/hudson/job/tractest12github/3/" rel="alternate"/><id>tag:hudson.java.net,2013:tractest12github:2013-01-03_15-54-50</id>
        <published>2013-01-03T06:54:50Z</published>
        <updated>2013-01-03T06:54:50Z</updated>
    </entry>
    </feed>   

    Hudson3-3-0 
    Trac 1.0
    HudsonTrac-0.5-py2.7
    Window7 64
4

1 回答 1

1

你的问题是什么?在我们为您提供帮助之前,您需要提供更多信息和一些背景信息。单独的错误消息不足以找出您的问题。问题发生时你在做什么?这在过去有效吗?最近有什么改变/升级吗?

根据我猜您的问题,您可能会发现此 trac-hacks 票证中的讨论很有用:票证 #7340 - Authentication failed

此外,请仔细检查您的插件设置并验证您的所有参数是否设置正确(尤其是“ job_url”)。该错误看起来像是在获取 RSS 提要,而不是其他格式。您的 URL 中包含“ /rssAll/”,因此您获得的是 RSS 提要是有道理的。很有可能,你job_url错了。有关如何配置插件的详细信息,请参阅HudsonTrac 官方文档。

于 2013-01-04T23:51:42.333 回答