Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38864

Add support for preserving comments and formatting for Jenkinsfile roundtrip

      Support for comment preservation is not actively being worked on

      Many users have asked for preservation of comments, formatting and "shebang"s when loading and saving a Jenkinsfile through features like the Pipeline Editor. Due to technical and time constraints, this is infeasible to do in the short term without a high level of engineering investment.

      Problem
      Would be nice to have support for comments in the ModelAST. TBD whether the comments are required to be fully round-trip aware, but for anyone using the ModelAST classes to generate a groovy pipeline definition the ability to inject comments into the generated groovy would be incredibly useful.

          [JENKINS-38864] Add support for preserving comments and formatting for Jenkinsfile roundtrip

          Stephen Connolly created issue -
          Andrew Bayer made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          James Dumay made changes -
          Description Original: Would be nice to have support for comments in the {{ModelAST}}. TBD whether the comments are required to be fully round-trip aware, but for anyone using the {{ModelAST}} classes to generate a groovy pipeline definition the ability to inject comments into the generated groovy would be incredibly useful. New: {panel:title=Support for comment preservation is not actively being worked on|titleBGColor=lightgrey}
          Many users have asked for preservation of comments, formatting and "shebang"s when loading and saving a Jenkinsfile through the editor. Due to technical constraints, this is infeasible to do in the short term without a high level of engineering time.
          {panel}

          *Problem*
          Would be nice to have support for comments in the {{ModelAST}}. TBD whether the comments are required to be fully round-trip aware, but for anyone using the {{ModelAST}} classes to generate a groovy pipeline definition the ability to inject comments into the generated groovy would be incredibly useful.
          James Dumay made changes -
          Summary Original: Add support for comments to the ModelAST New: Add support for preserving comments and formatting for Jenkinsfile roundtrip
          James Dumay made changes -
          Description Original: {panel:title=Support for comment preservation is not actively being worked on|titleBGColor=lightgrey}
          Many users have asked for preservation of comments, formatting and "shebang"s when loading and saving a Jenkinsfile through the editor. Due to technical constraints, this is infeasible to do in the short term without a high level of engineering time.
          {panel}

          *Problem*
          Would be nice to have support for comments in the {{ModelAST}}. TBD whether the comments are required to be fully round-trip aware, but for anyone using the {{ModelAST}} classes to generate a groovy pipeline definition the ability to inject comments into the generated groovy would be incredibly useful.
          New: {panel:title=Support for comment preservation is not actively being worked on|titleBGColor=lightgrey}
          Many users have asked for preservation of comments, formatting and "shebang"s when loading and saving a Jenkinsfile through features like the Pipeline Editor. Due to technical constraints, this is infeasible to do in the short term without a high level of engineering investment.
          {panel}

          *Problem*
          Would be nice to have support for comments in the {{ModelAST}}. TBD whether the comments are required to be fully round-trip aware, but for anyone using the {{ModelAST}} classes to generate a groovy pipeline definition the ability to inject comments into the generated groovy would be incredibly useful.
          James Dumay made changes -
          Description Original: {panel:title=Support for comment preservation is not actively being worked on|titleBGColor=lightgrey}
          Many users have asked for preservation of comments, formatting and "shebang"s when loading and saving a Jenkinsfile through features like the Pipeline Editor. Due to technical constraints, this is infeasible to do in the short term without a high level of engineering investment.
          {panel}

          *Problem*
          Would be nice to have support for comments in the {{ModelAST}}. TBD whether the comments are required to be fully round-trip aware, but for anyone using the {{ModelAST}} classes to generate a groovy pipeline definition the ability to inject comments into the generated groovy would be incredibly useful.
          New: {panel:title=Support for comment preservation is not actively being worked on|titleBGColor=lightgrey}
          Many users have asked for preservation of comments, formatting and "shebang"s when loading and saving a Jenkinsfile through features like the Pipeline Editor. Due to technical and time constraints, this is infeasible to do in the short term without a high level of engineering investment.
          {panel}

          *Problem*
          Would be nice to have support for comments in the {{ModelAST}}. TBD whether the comments are required to be fully round-trip aware, but for anyone using the {{ModelAST}} classes to generate a groovy pipeline definition the ability to inject comments into the generated groovy would be incredibly useful.
          Liam Newman made changes -
          Resolution Original: Won't Fix [ 2 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Liam Newman made changes -
          Status Original: Reopened [ 4 ] New: Open [ 1 ]
          R. Tyler Croy made changes -
          Link New: This issue is related to JENKINS-43005 [ JENKINS-43005 ]
          James Dumay made changes -
          Epic Link New: JENKINS-45423 [ 183591 ]
          Andrew Bayer made changes -
          Assignee Original: Andrew Bayer [ abayer ]

            Unassigned Unassigned
            stephenconnolly Stephen Connolly
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: