我試圖用令牌調用遠程構建。它給了我401個。根據我的理解,它不需要令牌。遠程基於openshift jenkins實例
Jigars-MacBook-Pro:portal jigarshah$
curl https://jigarshah:<TOKEN API>@jenkins-jigarshah.rhcloud.com/job/MyJob/build?token=<TOKEN>
<html><head><title>Error 401</title></head><body bgcolor="#ffffff"><h1>Status Code: 401</h1>Exception: Bad credentials<br>Stacktrace: (none)
<br><hr size="1" width="90%"><i>Generated by Winstone Servlet Engine v0.9.10 at Mon Apr 08 09:27:59 EDT 2013</i></body></html>
我在這裏錯過了什麼?
哦,親愛的...這是一個問題......如何到位桶鉤服務將能夠通過那些信息?根據第一個鏈接wget http:// user:[email protected]/job/your_job/build?token = TOKEN應該可以工作。相當於密碼的apiToken已經存在.... – 2013-04-08 18:41:46
此格式對我有效: curl -3 https:// admin:[email protected]/job/simpleapp-build/build?t。 .. – 2013-04-08 19:22:45