jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-47747] Ability to set permissions on file with writeFile

Open
#446 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

It would be nice if we could write the content of the file and sets its permissions (like execute) all in one single command like:

writeFile file:'myfile.sh', content:'...', perms='755'

The permissions are likely to be a noop under Windows tho...

---
Originally reported by brenuart, imported from: Ability to set permissions on file with writeFile


  • status: Open
  • priority: Minor
  • component(s): workflow-basic-steps-plugin
  • resolution: Unresolved
  • votes: 6
  • watchers: 4
  • imported: 20251215-220547

Raw content of original issue

It would be nice if we could write the content of the file and sets its permissions (like execute) all in one single command like:



writeFile file:'myfile.sh', content:'...', perms='755'


The permissions are likely to be a noop under Windows tho...

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.