jenkinsci / jenkinsci/durable-task-plugin

[JENKINS-55946] Pipeline sh invocations run on noexec mounted filesystems will silently fail

Open
#454 1 comment 0 reactions 0 assignees View on GitHub
component:durable-task-plugin imported-jira-issue pipeline priority:critical resolution:unresolved
Dominant language
Java
Stars
30
Forks
101
PR merge metrics
No merged PRs in 30d

Description

Pipeline jobs might (probably) invoke an sh step.

Such step are including a shebang on the underlying script.

Such shebang caused the script to be mode changed to executable.

These "executables", when written on a mounted filesystem with the noexec flag, become non-executable, causing a not obvious failure (in fact, no error is shown beyond a non executing step).

Replacing the bare executable script with a call to the runner defined at the shebang, avoids this situation

---
Originally reported by witokondoria, imported from: Pipeline sh invocations run on noexec mounted filesystems will silently fail


  • status: Open
  • priority: Critical
  • component(s): durable-task-plugin
  • label(s): pipeline
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-09

Raw content of original issue

Pipeline jobs might (probably) invoke an sh step.
Such step are including a shebang on the underlying script.
Such shebang caused the script to be mode changed to executable.
These "executables", when written on a mounted filesystem with the noexec flag, become non-executable, causing a not obvious failure (in fact, no error is shown beyond a non executing step).

Replacing the bare executable script with a call to the runner defined at the shebang, avoids this situation


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.