我已經看過這4個職位:詹金斯通過出版過SSH transfering 0文件
- Jenkins transferring 0 files using publish over SSH plugin
- transferring 0 files using publish over SSH plugin in Jenkins
- Jenkins, SSH plugin, 0 files transferred
- Jenkins 0 files published after build
我們的問題似乎有大部分與該清單中的第一個問題有關。
我們正在將我們的軟件(以及我們需要的軟件包)從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發佈的插件,看看是否有幫助。