When editing a script in a Jenkins text area -- has anyone looked into having language aware editors be enabled

43 views
Skip to first unread message

Rinaldo DiGiorgio

unread,
Sep 21, 2015, 4:37:47 PM9/21/15
to Jenkins Users
Has anyone tried to enable javascript based language editors for all the times one can enter code in a Jenkins text area. I prefer to use SCM systems but the turn around time for that is too slow when doing development. It would be a big productivity boost to have a language editor be available. It might be possible to add support for pushing the code from the editor box to a repo to make data entry in the script area window part of the development process. I am looking for any past work or thought in this area.



Rinaldo

Maciej Jaros

unread,
Sep 30, 2015, 5:46:06 AM9/30/15
to jenkins...@googlegroups.com
Rinaldo DiGiorgio (2015-09-21 22:37):
Has anyone tried to enable javascript based language editors for all the times one can enter code in a Jenkins text area. I prefer to use SCM systems but the turn around time for that is too slow when doing development. It would be a big productivity boost to have a language editor be available. It might be possible to add support for pushing the code from the editor box to a repo to make data entry in the script area window part of the development process. I am looking for any past work or thought in this area.

I've used EditArea for editing shell scripts. You could integrate it (or some other syntax-highlighter) using Simple Theme Plugin. You can see my implementation on Github. It has a flaw in that it only works for existing fields (I would have to hook some create-step event to prepare new fields), but in your case this shouldn't be a problem. You can just check on load if there is some specific parameter (e.g. with specific name-prefix) available in HTML and enhance it.

Regards,
Nux.
Reply all
Reply to author
Forward
0 new messages