jenkins - Jenkins多分支无法找到项目工件副本
问题描述
我正在使用multibranch-pipeline
,我需要在信号下游分支中连接 3 个上游分支。当我尝试从上游项目复制工件时,出现以下错误:
ERROR: Unable to find project for artifact copy: http://servername/job/pocbranches/test 这可能是由于项目名称或权限设置不正确;请参阅作业配置中项目名称的帮助。完成:失败
下面的代码是我的下游分支。
copyArtifacts fingerprintArtifacts: true,
projectName:'$projectName',
selector: upstream()
你能帮我解决这个问题吗?
解决方案
也许尝试使用绝对文件路径
copyArtifacts fingerprintArtifacts: true,
projectName: '/' + '$projectName',
selector: upstream()
也给予 copyArtifact 许可,如
options {
copyArtifactPermission('/' + $projectName)
}
推荐阅读
- javascript - React Hooks Todo App 'TypeError: Object(...) is not a function' 错误
- docker-for-windows - 为什么 htop 不使用 wsl2 显示我的 docker 进程
- python - 从饼图内侧的饼图中删除值
- spring - @OneToOne(cascade = {CascadeType.ALL}) 问题
- postgresql - 如何在 PostgreSQL 中执行 FULL JOIN、LEFT JOIN 和 RIGHT JOIN
- node.js - 如何访问结果视频中的数据?(柏)
- python - 使用 Python 进行二维热传导
- python - 5个最常见项目的条形图
- ninja - 忍者能处理长文件名吗?
- r - (自动)在 RStudio 控制台中以各自的颜色显示十六进制字符串?