我正在嘗試用Raspberry Pi爲我們的辦公室牆創建完全自動化的Jenkins狀態屏幕。我能夠配置Pi在電視上顯示具有特定URL的瀏覽器,並配置我們的構建作業Build Monitor Plugin in Jenkins。Jenkins構建無需手動登錄的監視器牆
我們的Jenkins使用基於矩陣的安全性,所以我創建了具有所需特權的單獨raspberry
用戶。 (在手動壁插件記錄之後被適當地顯示。)
我可以看到下面的命令有效的HTTP應答:
curl "http://raspberry:[email protected]:8080/view/wall1/"
0b45...06
是raspberry
詹金斯用戶的API令牌。 (來自 http://localhost:8080/user/raspberry/configure
)
不幸的是,這種URL方案在圖形瀏覽器中不起作用。我也嘗試沒有成功令牌參數:
$ curl "http://localhost:8080/view/wall1/?token=0b45...06"
<html><head>...</head><body ...>
Authentication required
<!--
You are authenticated as: anonymous
Groups that you are in:
Permission you need to have (but didn't): hudson.model.Hudson.Read
... which is implied by: hudson.security.Permission.GenericRead
... which is implied by: hudson.model.Hudson.Administer
-->
</body></html>
我怎樣才能得到它未經登錄的瀏覽器(如鉻或綠)的作品,並顯示我的詹金斯視圖中的網址?
我不想要任何手動步驟,包括登錄(例如VNC),因爲它不能很好地適應多個辦公室/ Pis。
如果一切都失敗了,也許你可以設置一個[添加認證憑證的代理](http://serverfault.com/questions/239154/whats-the-easiest-way-to-create-an-http- proxy-which-adds-basic-authentication-t)給Pi請求? – approxiblue
@approxiblue:感謝您的評論!實際上,我是在一週前完成的,作爲解決方法,但我希望有一個更簡單的解決方案。 – palacsint