Jenkins,SSH插件,已传输0个文件 [英] Jenkins, SSH plugin, 0 files transferred

查看:777
本文介绍了Jenkins,SSH插件,已传输0个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们是由三个人组成的小组,使用MEANJS进行项目,Bitbucket是我们的源代码控制,并且我们使用Jenkins进行测试自动化和CI.我们想使用Jenkins从Bitbucket中提取,构建和运行测试,然后通过SSH将项目部署到另一台计算机.

We are a group of three doing a project using MEANJS, Bitbucket is our source control and we are using Jenkins for test automation and CI. We want to use Jenkins to pull from Bitbucket, build and run tests and then deploy the project via SSH to another machine.

我们在Bitbucket和Jenkins之间建立了连接,Jenkins托管在Windows服务器上,之后我们想通过SSH部署我们的项目,并且能够使用SSH连接到CentOS服务器,连接成功了,但是传输总是有0个文件:

We have a connection between Bitbucket and Jenkins, Jenkins is hosted on a windows server, after that we want to deploy our project via SSH and we are able to connect to our CentOS server using SSH, the connection is a success but the transfer always has 0 files:

Started by user Centris
Building in workspace C:\Program Files (x86)\Jenkins\workspace\Evert
 > C:\Program Files (x86)\Git\cmd\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > C:\Program Files (x86)\Git\cmd\git.exe config remote.origin.url     https://evertJenkins:teamEvert@bitbucket.org/evert-team/evert.git # timeout=10
Fetching upstream changes from https://evertJenkins@bitbucket.org/evert-team/evert.git
 > C:\Program Files (x86)\Git\cmd\git.exe --version # timeout=10 using .gitcredentials to set credentials
 > C:\Program Files (x86)\Git\cmd\git.exe config --local credential.helper store --file=\"C:\Users\centris\AppData\Local\Temp\git2236090933781388612.credentials\" # timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress https://evertJenkins@bitbucket.org/evert-team/evert.git +refs/heads/*:refs/remotes/origin/*
 > C:\Program Files (x86)\Git\cmd\git.exe config --local --remove-section credential # timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe rev-parse "origin/master^{commit}" # timeout=10
Checking out Revision b0ca93376cb8b1799a069a7e33e212ebc886261a (origin/master)
 > C:\Program Files (x86)\Git\cmd\git.exe config core.sparsecheckout # timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe checkout -f b0ca93376cb8b1799a069a7e33e212ebc886261a
 > C:\Program Files (x86)\Git\cmd\git.exe rev-list b0ca93376cb8b1799a069a7e33e212ebc886261a # timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe tag -a -f -m Jenkins Build #39 jenkins-Evert-39 #     timeout=10
SSH: Connecting from host [centris]
SSH: Connecting with configuration [Centris leit] ...
SSH: Disconnecting configuration [Centris leit] ...
SSH: Transferred 0 file(s)
Build step 'Send files or execute commands over SSH' changed build result to SUCCESS
SSH: Connecting from host [centris]
SSH: Connecting with configuration [Centris leit] ...
SSH: Disconnecting configuration [Centris leit] ...
SSH: Transferred 0 file(s)
Finished: SUCCESS

我们的项目名为Evert,因此它位于工作区\ Evert下.

Our project is named Evert and thus it is located under workspace\Evert.

我们已经尝试了所有形式的源文件字符串,从完整路径一直到现在的内容:

We have tried all forms of strings for our source files, from a full path down to what we have now that is:

Evert\**\*

我们还将删除前缀设置为:

We also have remove prefix set as:

Evert\

我们尝试了以下操作: Jenkins使用以下方法传输0个文件通过SSH插件发布,但我们仍然遇到同样的问题.谁能告诉我们可能是什么问题.

we have tried following this: Jenkins transferring 0 files using publish over SSH plugin but we still have the same problem. Can anyone please tell us what might be the problem.

推荐答案

您可以简单地将其归档并将其归档到CentOS机器上.并非所有的Jenkins插件都是一样的.

You could simply archive it and scp the archive to the CentOS machine. Not all Jenkins plugins are created equal.

这篇关于Jenkins,SSH插件,已传输0个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆