2014-01-07 37 views
0

我建立了一個buildbot,試圖用來構建nginx。buildbot auto自動構建nginx失敗

但我失敗了哪個自動「配置」爲nginx的./configure是在./auto/中,通常在./中。

我廠的配置如下圖所示:

nginx_factory.addStep(Git(repourl='/home/hanc/data/git_data/nginx_1.5.8', mode='incremental', method='fresh')) 
nginx_factory.addStep(Configure(command=["./auto/configure --without-http_rewrite_module --without-http_gzip_module"])) 
nginx_factory.addStep(ShellCommand(command=["make", "-j2"])) 

的錯誤信息是:

Upon execvpe ./auto/configure --without-http_rewrite_module --without-http_gzip_module ['./auto/configure --without-http_rewrite_module --without-http_gzip_module'] in environment id 27183840 
:Traceback (most recent call last): 
    File "/usr/lib64/python2.7/site-packages/twisted/internet/process.py", line 420, in _fork 
    executable, args, environment) 
    File "/usr/lib64/python2.7/site-packages/twisted/internet/process.py", line 466, in _execChild 
    os.execvpe(executable, args, environment) 
    File "/usr/lib64/python2.7/os.py", line 353, in execvpe 
    _execvpe(file, args, env) 
    File "/usr/lib64/python2.7/os.py", line 368, in _execvpe 
    func(file, *argrest) 
OSError: [Errno 2] No such file or directory 

我注意到它說找不到文件。但該文件正確無誤。

回答

0

可能需要在ShellCommand定義中設置workdir變量才能構建/ nginx_1.5.8(檢查從屬文件夾結構)