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

查看:418
本文介绍了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 \<br/>
../\*\*<br/>
../\*\*/\*.html<br/>
removing C:<br/>

我在这里缺少的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天全站免登陆