3

我正在使用Jenkins 1.552配置email-ext 2.25插件。我的工作应该在每次成功构建后发送一封附有文件的电子邮件。为此,我使用了电子邮件插件,并在附件字段中添加了要发送的文件的路径。邮件发送成功,但文件未附加,我有这个特定的错误:

ERROR: Error accessing files to attach: remote file operation failed: /../hudson2/workspace/MY_JOB at hudson.remoting.Channel@host

这个访问问题的原因应该是什么?

PS:我的工作在 ssh 从站上运行。

4

1 回答 1

2

您将收到错误消息,因为 email-ext 插件使用 ant 脚本作为附件,因此它仅适用于相对地址。确保要附加的文件应位于您工作的工作区下。

附件模式应为:**/foldername/*.txt(示例)

于 2014-06-20T10:41:10.997 回答