我從來沒有在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和連接,並且在從命令行拉出時起作用。有關如何解決這個問題的任何建議?
這看起來比只有密碼更基礎。它看起來像在搜索PATH環境變量的shell中沒有找到你的git二進制文件。 –