Jenkins 管道存储不存储文件
Jenkins Pipeline Stash not Stashing file
我是第一次尝试使用 Jenkins stash
/unstash
,但我无法成功存储我的文件。
这是文件的路径:
/opt/cicd/jenkins/workspace/DEVOPS/stageParams.yaml
这是我的隐藏命令:
{stash name: "config", includes: "/DEVOPS/stageParams.yaml"}
我一直收到这个错误:
ERROR:No files included in stash 'config'
请帮忙!
/opt/cicd/jenkins/workspace/DEVOPS/stageParams.yaml
/DEVOPS/stageParams.yaml
以上两条路径不同。
让我们试试:
{stash name: "config", includes: "DEVOPS/stageParams.yaml"}
我是第一次尝试使用 Jenkins stash
/unstash
,但我无法成功存储我的文件。
这是文件的路径:
/opt/cicd/jenkins/workspace/DEVOPS/stageParams.yaml
这是我的隐藏命令:
{stash name: "config", includes: "/DEVOPS/stageParams.yaml"}
我一直收到这个错误:
ERROR:No files included in stash 'config'
请帮忙!
/opt/cicd/jenkins/workspace/DEVOPS/stageParams.yaml
/DEVOPS/stageParams.yaml
以上两条路径不同。
让我们试试:
{stash name: "config", includes: "DEVOPS/stageParams.yaml"}