2014-01-07 33 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(检查从属文件夹结构)