Jenkins通过SSH发布无法更改到远程目录 [英] Jenkins publish over SSH failed to change to remote directory

查看:771
本文介绍了Jenkins通过SSH发布无法更改到远程目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Jenkins通过SSH插件发布将文件传输到远程服务器.

I am using the Jenkins publish over SSH plugin to transfer files to a remote server.

当我配置通过SSH发布"插件并指定远程目录时,测试配置始终会因以下错误而失败:

When I configure the Publish over SSH plugin and specify a Remote Directory, testing the configuration always fails with this error:

jenkins.plugins.publish_over.BapPublisherException:无法更改 到远程目录[C:\ zzTest]

jenkins.plugins.publish_over.BapPublisherException: Failed to change to remote directory [C:\zzTest]

但是,如果我将远程目录"字段保留为空白,则在测试配置时会收到一条成功消息.

However if I leave the Remote Directory filed blank I get a success message when I test the configuration.

关于我在这里做错什么的任何想法?该目录肯定存在于远程服务器上.

Any ideas as to what I am doing wrong here? The directory definitely exists on the remote server.

推荐答案

因此,问题似乎在于在远程目录字段中指定了绝对路径.

So it seems the problem was with specifying the absolute path in the Remote Directory field.

解决方案是指定相对路径.因此,在上述/zzTest 场景中,应在 Remote Directory 字段中输入该值.

The solution is to specify the relative path. So in the scenario above /zzTest is the value which should be entered into the Remote Directory field.

这篇关于Jenkins通过SSH发布无法更改到远程目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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