-
Improvement
-
Resolution: Won't Fix
-
Minor
-
None
-
rc1
Most of our existing Pipeline examples include a Groovy she-bang at the top. This helps a wide range of editors properly highlight the code in the Jenkinsfile.
Even if most comments are not retained or supported, a file header with she-bang should be allowed and maintained.
- relates to
-
JENKINS-43005 Warn if there are comment strings in declarative pipeline when opened in editor
-
- Open
-
bitwiseman remember in the eyes of users a Declarative Jenkinsfile is not a "script" and a shebang would be drawing attention to its groovy origins (we've spent a lot of time removing the stink of groovy from declarative).
If you've added a shebang, I can see how we might want to preserve that for you. Ill let abayer make that call (the roundtrip is actually controlled by declarative itself - not the editor).