jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-46992] stash could do not find relative path with './' prepend

Open
#443 0 comments 0 reactions 0 assignees View on GitHub
component:workflow-basic-steps-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
73
Forks
129
PR merge metrics
No merged PRs in 30d

Description

After changing to a specified Directory, stash do not find the files if the includes path has been prepend with ./

Do not work:

dir("D:\\publish\\") {

stash name: 'Setup-EXE', includes: './Setup/*'
}

Work like a charm:

dir("D:\\publish\\") {

stash name: 'Setup-EXE', includes: 'Setup/*'
}

Regards, Éric.

---
Originally reported by ericlouvard, imported from: stash could do not find relative path with './' prepend


  • status: Open
  • priority: Minor
  • component(s): workflow-basic-steps-plugin
  • label(s): stash, triaged-2018-11
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251215-220547

Raw content of original issue

After changing to a specified Directory, stash do not find the files if the includes path has been prepend with ./
Do not work:



dir("D:\\publish\\") {

stash name: 'Setup-EXE', includes: './Setup/*'
}


Work like a charm:



dir("D:\\publish\\") {

stash name: 'Setup-EXE', includes: 'Setup/*'
}


Regards, Éric.

environment

```
Jenkins 2.79

Slave Windows Server 2016
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.