Jenkins Pipeline Stash not Stashing file

问题描述 投票:0回答:1

我第一次尝试使用Jenkinsstash/ unstash,但无法成功存储文件。

这是文件的路径:

/opt/cicd/jenkins/workspace/DEVOPS/stageParams.yaml

这是我的存储命令:

{stash name: "config", includes: "/DEVOPS/stageParams.yaml"}

我一直收到此错误:

ERROR:No files included in stash 'config'

请帮助!

jenkins jenkins-pipeline declarative
1个回答
0
投票

/opt/cicd/jenkins/workspace/DEVOPS/stageParams.yaml/DEVOPS/stageParams.yaml以上两条路径是不同的。让我们尝试:{stash name: "config", includes: "DEVOPS/stageParams.yaml"}

© www.soinside.com 2019 - 2024. All rights reserved.