检查更改时,如何让Jenkins忽略某些文件? [英] How to have Jenkins ignore certain files when checking for change?

查看:230
本文介绍了检查更改时,如何让Jenkins忽略某些文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在CVS配置的排除区域"中,添加了以下内容:

In the "Excluded Regions" of the CVS configuration, I have added the following:

.*/.*/.*\.d
.*/.*/.*\.o
.*/.*/.*\.so
.*/.*/.*\.a
.*/.*/.*\.exe
.*/.*/.*\.obj
.*/.*/.*\.dll
.*/.*/.*\.lib
.*/.*/.*\.txt
.*/.*/.*\.tar
.*/.*/.*\.tar\.gz

具有上述扩展名的所有文件都应忽略.但是,Jenkins仍然基于以下事实运行构建:某个文件夹ABC中的文件"build.txt"已更改,或者tar.gz文件之一已更改.如何让詹金斯忽略这些文件?我的正则表达式有问题吗?

All files with the above extensions should be ignored. However, Jenkins still runs builds based on the fact that a file "build.txt" in some folder ABC has changed, or the one of the tar.gz files has changed. How to get Jenkins to ignore these files? Is something wrong with my regex?

推荐答案

为您服务的高兴!根据要求重新发布:

Glad that worked for you! Reposting as requested:

我的猜测是它与.*/部分有关.您是否只用.*\.txt尝试过?

My guess is it has to do with the .*/ parts. Have you tried it with just .*\.txt?

作为一个实验,您也可以尝试/.*/.*/.*\.txt(请注意开头的多余的/).我感觉到该问题与使用相对文件路径和绝对文件路径有关.

Just as an experiment, you might also try /.*/.*/.*\.txt (note the extra / at the beginning). I have a feeling the problem was related to using relative vs. absolute file paths.

这篇关于检查更改时,如何让Jenkins忽略某些文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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