jenkinsci / jenkinsci/workflow-durable-task-step-plugin

[JENKINS-44341] Pipeline name breaks sh step

Open
#528 5 comments 0 reactions 0 assignees View on GitHub
component:workflow-durable-task-step-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
46
Forks
110
PR merge metrics
No merged PRs in 30d

Description

pipeline name: Spaces and 'Fancy' "Symbols"

pipeline script:

node ('master') {

    sh "ls -la"

}

 

error:

Started by user xaseron

[Pipeline] node

Running on master in /var/jenkins_home/workspace/Spaces and 'Fancy' "Symbols"

[Pipeline] {

[Pipeline] sh

[Spaces and 'Fancy' "Symbols"] Running shell script

sh: can't create /var/jenkins_home/workspace/Spaces and Fancy "Symbols"@​tmp/durable-2e345778/pid: nonexistent directory

sh: can't create /var/jenkins_home/workspace/Spaces and Fancy "Symbols"@​tmp/durable-2e345778/jenkins-log.txt: nonexistent directory

sh: can't create /var/jenkins_home/workspace/Spaces and Fancy "Symbols"@​tmp/durable-2e345778/jenkins-result.txt: nonexistent directory

[Pipeline] }

[Pipeline] // node

[Pipeline] End of Pipeline

ERROR: script returned exit code -2

Finished: FAILURE

---
Originally reported by xaseron, imported from: Pipeline name breaks sh step


  • status: Open
  • priority: Minor
  • component(s): workflow-durable-task-step-plugin
  • resolution: Unresolved
  • votes: 3
  • watchers: 6
  • imported: 20251212-090250

Raw content of original issue

pipeline name: Spaces and 'Fancy' "Symbols"

pipeline script:

node ('master') {
    sh "ls -la"
}

 

error:

Started by user xaseron
[Pipeline] node
Running on master in /var/jenkins_home/workspace/Spaces and 'Fancy' "Symbols"
[Pipeline] {
[Pipeline] sh
[Spaces and 'Fancy' "Symbols"] Running shell script
sh: can't create /var/jenkins_home/workspace/Spaces and Fancy "Symbols"@tmp/durable-2e345778/pid: nonexistent directory
sh: can't create /var/jenkins_home/workspace/Spaces and Fancy "Symbols"@tmp/durable-2e345778/jenkins-log.txt: nonexistent directory
sh: can't create /var/jenkins_home/workspace/Spaces and Fancy "Symbols"@tmp/durable-2e345778/jenkins-result.txt: nonexistent directory
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code -2
Finished: FAILURE

environment

```
docker jenkins:alpine 2.46.2

Windows, manual installation 2.46.3
```

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.