2015-09-08 31 views
-1

我從來沒有在buildbot之前使用過GitPoller,但我想組裝它。 因此,我有一個使用用戶名和密碼訪問的回購協議,所以當我克隆它時,我使用:https://[email protected]/path/to/repo.git而當我嘗試拉或推它時要求輸入密碼。所以我認爲我的問題在於認證部分。Buildbot GitPoller - 如何使用密碼配置GitPoller

至於repourl我試着使用: [email protected] https://[email protected] https://[email protected]/path/to/repo.git https://username:[email protected]/path/to/repo.git 但他們沒有工作。我總是得到以下回應:

2015-09-08 16:42:13+1000 [-] while polling for changes 
    Traceback (most recent call last): 
     File "C:\Python27\lib\site-packages\buildbot\util\misc.py", line 54, in start 
     d = self.method() 
     File "C:\Python27\lib\site-packages\buildbot\changes\base.py", line 70, in doPoll 
     d = defer.maybeDeferred(self.poll) 
     File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 150, in maybeDeferred 
     result = f(*args, **kw) 
     File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 1274, in unwindGenerator 
     return _inlineCallbacks(None, gen, Deferred()) 
    --- <exception caught here> --- 
     File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 1128, in _inlineCallbacks 
     result = g.send(result) 
     File "C:\Python27\lib\site-packages\buildbot\changes\gitpoller.py", line 147, in poll 
     yield self._dovccmd('init', ['--bare', self.workdir]) 
     File "C:\Python27\lib\site-packages\buildbot\changes\gitpoller.py", line 299, in _dovccmd 
     [command] + args, path=path, env=os.environ) 
     File "C:\Python27\lib\site-packages\twisted\internet\utils.py", line 174, in getProcessOutputAndValue 
     reactor) 
     File "C:\Python27\lib\site-packages\twisted\internet\utils.py", line 28, in _callProtocolWithDeferred 
     reactor.spawnProcess(p, executable, (executable,)+tuple(args), env, path) 
     File "C:\Python27\lib\site-packages\twisted\internet\posixbase.py", line 353, in spawnProcess 
     return Process(self, processProtocol, executable, args, env, path) 
     File "C:\Python27\lib\site-packages\twisted\internet\_dumbwin32proc.py", line 195, in __init__ 
     raise OSError(pwte) 
    exceptions.OSError: (2, 'CreateProcess', 'The system cannot find the file specified.') 

計算機配置了git和連接,並且在從命令行拉出時起作用。有關如何解決這個問題的任何建議?

+0

這看起來比只有密碼更基礎。它看起來像在搜索PATH環境變量的shell中沒有找到你的git二進制文件。 –

回答

1

@DavidDean是對的。 Buildbot無法使用PATH中的git,即使它已在機器上正確配置,但將git bin添加爲git poller的參數可解決此問題。

0

你能避免GitPoller gitbin在buildbot主配置修改設置的Git倉路徑:在您的Windows奴隸%PATH%系統環境變量(C \ Program Files文件\的Git \ BIN)。

定製gitPoller gitbin如果主站配置了Windows + Linux從站,則主站上的變量可能會出現問題。

相關問題