2016-12-21 95 views
1

我已經看過這4個職位:詹金斯通過出版過SSH transfering 0文件

我們的問題似乎有大部分與該清單中的第一個問題有關。

我們正在將我們的軟件(以及我們需要的軟件包)從Windows構建到Linux。設置Linux版本確實奏效,但是,生成的歸檔文件沒有傳輸到我們的軟件包服務器。相關控制檯輸出:

SSH: Connecting from host [intern2] 
SSH: Connecting with configuration [intern2] ... 
SSH: EXEC: STDOUT/STDERR from command [conda index /srv/pkgsrv/conda-repo/linux-64/] ... 

updating index in: /srv/pkgsrv/conda-repo/linux-64 
SSH: EXEC: completed after 1,001 ms 
SSH: Disconnecting configuration [intern2] ... 
SSH: Transferred 0 file(s) 
Finished: SUCCESS 

構建配置是:

Source files: conda-bld/linux-64/*.tar.bz2 
Remove prefix: conda-bld/linux-64 
Remote directory: conda-repo/linux-64/ 
Execute command: conda index /srv/pkgsrv/conda-repo/linux-64/ 

遠程目錄已經存在,詹金斯有權利寫在那裏。窗口版本使用相同的服務器配置(除了子版本),並且它們被正確傳輸。 詹金斯說配置:

HOME /var/lib/jenkins 
JENKINS_HOME /var/lib/jenkins 
PWD /var/lib/jenkins 

我們正在建設進入目錄爲$ HOME /暢達-BLD/Linux的-64。在那裏我可以看到構建的.tar.bz2文件(已經積累了一些成功的構建)。

[email protected]:~/conda-bld/linux-64$ ls 
fonts-1-1.tar.bz2     qjsonrpc-dev-1.0-12.tar.bz2 qjsonrpc-dev-1.0-6.tar.bz2 qjsonrpc-dev-1.0-9.tar.bz2 
<otherproject>-0.1-19_g6fe33e2.tar.bz2 qjsonrpc-dev-1.0-13.tar.bz2 qjsonrpc-dev-1.0-7.tar.bz2 repodata.json 
qjsonrpc-dev-1.0-10.tar.bz2   qjsonrpc-dev-1.0-14.tar.bz2 qjsonrpc-dev-1.0-8.tar.bz2 repodata.json.bz2 

jenkins爲什麼不提供某種錯誤,如果它不復制?我如何指定文件夾有問題,因爲我無法弄清楚什麼?我在哪裏可以查找錯誤?

/編輯:我看了看詹金斯日誌,發現

Dec 22, 2016 8:39:41 AM org.kohsuke.stapler.RequestImpl$TypePair convertJSON 
WARNING: 'stapler-class' is deprecated: hudson.plugins.git.extensions.impl.RelativeTargetDirectory 
Dec 22, 2016 8:39:41 AM org.kohsuke.stapler.RequestImpl$TypePair convertJSON 
WARNING: 'stapler-class' is deprecated: hudson.tasks.Shell 
Dec 22, 2016 8:39:41 AM org.kohsuke.stapler.RequestImpl$TypePair convertJSON 
WARNING: 'stapler-class' is deprecated: jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin 
Dec 22, 2016 8:40:15 AM hudson.model.Run execute 
INFO: qjsonrpc-linux #15 main build action completed: SUCCESS 

我會嘗試更新SSH發佈的插件,看看是否有幫助。

回答

0

問題是由於我忘記設置CONDA_BLD_PATH,所以文件被構建到不同於jenkins工作目錄的文件夾中。但是,在設置CONDA_BLD_PATH時,我們在構建包時遇到了奇怪的錯誤。

Making absolute symlink root/lib64/libqjsonrpc.so.1.0 -> libqjsonrpc.so.1.0.99 relative 
Traceback (most recent call last): 
    File "/usr/local/lib/miniconda/bin/conda-build", line 6, in <module> 
    sys.exit(conda_build.cli.main_build.main()) 
    File "/usr/local/lib/miniconda/lib/python2.7/site-packages/conda_build/cli/main_build.py", line 242, in main 
    execute(sys.argv[1:]) 
    File "/usr/local/lib/miniconda/lib/python2.7/site-packages/conda_build/cli/main_build.py", line 234, in execute 
    already_built=None, config=config) 
    File "/usr/local/lib/miniconda/lib/python2.7/site-packages/conda_build/api.py", line 77, in build 
    need_source_download=need_source_download, config=config) 
    File "/usr/local/lib/miniconda/lib/python2.7/site-packages/conda_build/build.py", line 1099, in build_tree 
    config=recipe_config) 
    File "/usr/local/lib/miniconda/lib/python2.7/site-packages/conda_build/build.py", line 799, in build 
    create_info_files(m, pkg_files, config=config, prefix=config.build_prefix) 
    File "/usr/local/lib/miniconda/lib/python2.7/site-packages/conda_build/build.py", line 399, in create_info_files 
    write_about_json(m, config) 
    File "/usr/local/lib/miniconda/lib/python2.7/site-packages/conda_build/build.py", line 305, in write_about_json 
    conda_info = subprocess.check_output([bin_path, 'info', '--json', '-s']) 
    File "/usr/local/lib/miniconda/lib/python2.7/subprocess.py", line 574, in check_output 
    raise CalledProcessError(retcode, cmd, output=output) 
subprocess.CalledProcessError: Command '['/usr/local/lib/miniconda/bin/conda', 'info', '--json', '-s']' returned non-zero exit status 1 
Build step 'Execute shell' marked build as failure 

我們最終去與建設,以錯誤的目錄,然後移動文件,他們發表在後生成步驟之前。

mkdir -p conda-bld/linux-64 
conda build src 

然後

mv /var/lib/jenkins/conda-bld/linux-64/qjsonrpc*.tar.bz2 conda-bld/linux-64 

不知道設置暢達路的時候,但現在的工作有什麼不對的構建。