jenkins - jenkins - 如何停用区分大小写以获取匹配项
问题描述
我在我的工作中添加了这个存档工件步骤
archiveArtifacts 'BUILD/**/*.*'
得到以下错误:
ERROR: No artifacts found that match the file pattern "BUILD/**/*.*".
Configuration error?
ERROR: ‘BUILD/**/*.*’ doesn’t match anything because it is treated case
sensitively. You can deactivate case sensitivity to get matches
问题是我使用了所有大写字母,并且在我更新后它运行良好。
我的问题是如何禁用区分大小写以获取匹配项?
解决方案
在 Jenkins 管道中,如果您想以archiveArtifacts
不区分大小写的方式使用该步骤,您可以这样称呼它(如手册中所述):
archiveArtifacts artifacts: 'BUILD/**/*.*', caseSensitive: false
推荐阅读
- javascript - 如何将抓取 YouTube 标题的 jQuery 转换为功能
- node.js - ServiceNotFoundError:未找到服务“请求”,看起来它没有在容器中注册
- python - 理解 gensim word2vec 的 most_similar
- jquery - 触发点击不会以模式自动播放 YouTube 视频
- java - 与 Heroku java 服务器的套接字连接不起作用?
- javascript - 在 angular2 中创建图表以显示给定数据的中值
- c# - 运行子表单时防止初始表单“刷新”
- android - 从 Android Studio 中的 URL 解析 Json 文件数据
- python-3.x - 为什么不能从 cartopy-geopandas 图中设置为“假”特定轴刻度标签(例如:xlabels_top、ylabels_right)?
- swift - textField 允许所有字符,尽管 ShouldChangeCharactersIn 函数