jenkins 附件 - 语法是什么? [英] jenkins attachments - what is the syntax?

查看:39
本文介绍了jenkins 附件 - 语法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试让 Jenkins 将一个或一组文件附加到作业已完成的电子邮件通知中.我不断收到以下错误:

I'm trying to have Jenkins attach a file or set of files to the email notification that the job has completed. I keep getting an error along the lines of:

发送电子邮件触发:成功错误:访问要附加的文件时出错:期待 Ant GLOB 模式,但看到 C:\p\p\etc\\\*\*\\\*.html.

Sending email for trigger: Success ERROR: Error accessing files to attach: Expecting Ant GLOB pattern, but saw C:\p\p\etc\\\*\*\\\*.html.

参见文件集语法

是的,我看过那个网站并尝试了我能想到的所有变体:

And yes I've looked at that site and tried every variation I could think of:

/ instead of \
../\*\*
../\*\*/\*.html
removing C:

我在这里缺少的 Ant GLOB 模式是什么?

What is the Ant GLOB pattern I'm missing here?

谢谢,斯科特

推荐答案

附件的基目录是工作区目录.通常,这意味着您不能附加目录层次结构中高于工作区的文件(好吧,您可以使用 ../,但您必须非常确定您的工作区位置).此类问题的解决方法是在构建步骤中首先将文件复制到工作区中.

The base directory for attachments is the workspace directory. Generally it means that you can't attach files that are higher in the directory hierarchy than the workspace (well, you can use ../, but you have to be very sure about your workspace location). A workaround to this kind of problems is to copy your files into the workspace first in a build step.

这篇关于jenkins 附件 - 语法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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