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

Add a dynamic parser to colorize and indent groovy textareas

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • groovy-plugin
    • None

      In Jenkins, the groovy scripts inserted may be complex.

      It would be interesting to color these scripts dynamically using the javascript library CodeMirror and groovy parser provided by eXo Platform SAS (if license permits)

          [JENKINS-9130] Add a dynamic parser to colorize and indent groovy textareas

          Dominique Arnou created issue -

          That's what it could give ... In this test, I have not taken the time to replace the original textarea border

          (in the same way, it would also be possible to parse the html descriptions for jobs or views)

          Dominique Arnou added a comment - That's what it could give ... In this test, I have not taken the time to replace the original textarea border (in the same way, it would also be possible to parse the html descriptions for jobs or views)
          Dominique Arnou made changes -
          Attachment New: example.jpg [ 20325 ]

          Code changed in jenkins
          User: imod
          Path:
          .gitignore
          pom.xml
          src/main/java/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment.java
          src/main/java/org/jvnet/hudson/plugins/scriptler/ScritplerPluginImpl.java
          src/main/java/org/jvnet/hudson/plugins/scriptler/config/ScriptlerConfiguration.java
          src/main/java/org/jvnet/hudson/plugins/scriptler/util/ScriptHelper.java
          src/main/resources/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment/edit.jelly
          src/main/resources/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment/runscript.jelly
          src/main/resources/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment/scriptsettings.jelly
          src/main/resources/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment/settings.jelly
          src/main/resources/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment/settings.properties
          src/main/resources/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment/sidepanel.jelly
          src/main/webapp/lib/codemirror.css
          src/main/webapp/lib/codemirror.js
          src/main/webapp/lib/overlay.js
          src/main/webapp/mode/clike/clike.css
          src/main/webapp/mode/clike/clike.js
          src/main/webapp/mode/clike/index.html
          http://jenkins-ci.org/commit/scriptler-plugin/bc3f719cfa5e6f6831259dfe68e4141ca1b205f8
          Log:
          JENKINS-9302, JENKINS-9130 colorize groovy script areas

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: .gitignore pom.xml src/main/java/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment.java src/main/java/org/jvnet/hudson/plugins/scriptler/ScritplerPluginImpl.java src/main/java/org/jvnet/hudson/plugins/scriptler/config/ScriptlerConfiguration.java src/main/java/org/jvnet/hudson/plugins/scriptler/util/ScriptHelper.java src/main/resources/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment/edit.jelly src/main/resources/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment/runscript.jelly src/main/resources/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment/scriptsettings.jelly src/main/resources/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment/settings.jelly src/main/resources/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment/settings.properties src/main/resources/org/jvnet/hudson/plugins/scriptler/ScriptlerManagment/sidepanel.jelly src/main/webapp/lib/codemirror.css src/main/webapp/lib/codemirror.js src/main/webapp/lib/overlay.js src/main/webapp/mode/clike/clike.css src/main/webapp/mode/clike/clike.js src/main/webapp/mode/clike/index.html http://jenkins-ci.org/commit/scriptler-plugin/bc3f719cfa5e6f6831259dfe68e4141ca1b205f8 Log: JENKINS-9302 , JENKINS-9130 colorize groovy script areas
          Dominik Bartholdi made changes -
          Assignee Original: vjuranek [ vjuranek ] New: Dominik Bartholdi [ domi ]
          Dominik Bartholdi made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          I'm close to fnish this for scriptler and will implement it for the other plugins too.
          As soon as I'm done, I'll send a pull request to the other plugin maintainers...

          Dominik Bartholdi added a comment - I'm close to fnish this for scriptler and will implement it for the other plugins too. As soon as I'm done, I'll send a pull request to the other plugin maintainers...

          I just send a pull request for the groovy-postbuild-plugin:
          https://github.com/jenkinsci/groovy-postbuild-plugin/pull/1

          Dominik Bartholdi added a comment - I just send a pull request for the groovy-postbuild-plugin: https://github.com/jenkinsci/groovy-postbuild-plugin/pull/1

          as this s implemented for scriptler and groovy-postbuild I'll remove these from the components list...

          ...but there is still the groovy plugin to be done

          Dominik Bartholdi added a comment - as this s implemented for scriptler and groovy-postbuild I'll remove these from the components list... ...but there is still the groovy plugin to be done
          Dominik Bartholdi made changes -
          Component/s Original: groovy-postbuild [ 15685 ]
          Component/s Original: scriptler [ 15743 ]

            vjuranek vjuranek
            ptitrene Dominique Arnou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: