[JIRA] (JENKINS-38276) Increase size of text area for pipeline script code

23 views
Skip to first unread message

raffiglx@gmail.com (JIRA)

unread,
Sep 16, 2016, 9:31:02 AM9/16/16
to jenkinsc...@googlegroups.com
Raffi B created an issue
 
Jenkins / Improvement JENKINS-38276
Increase size of text area for pipeline script code
Issue Type: Improvement Improvement
Assignee: Jesse Glick
Components: pipeline
Created: 2016/Sep/16 1:30 PM
Environment: Jenkins 2.7.2
Pipeline plugin 2.11
Window 7 x64 SP1
Labels: ui pipeline jenkins
Priority: Minor Minor
Reporter: Raffi B

The text area for pipeline script code is too small, and neither Chrome or Firefox allow for custom resizing; text area size is likely hard coded in Jenkins.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

elaine_richards@symantec.com (JIRA)

unread,
Sep 26, 2016, 5:06:03 PM9/26/16
to jenkinsc...@googlegroups.com
Elaine Richards commented on Improvement JENKINS-38276
 
Re: Increase size of text area for pipeline script code

Count me in as a plaintive requester for a resizeable text box. I know we can use a script that we edit a file outside of Jenkins, but I'm poking at it in an iterative fashion and having a window large enough to do something more than "Hello World" would be peachy. I use Safari 9.1.1 and Chrome version 53.0.2785.116 (64-bit). Will not try on Firefox because of my personal history of "Why is this taking up so much memory?"

tony.xynidakis@team.telstra.com (JIRA)

unread,
Nov 23, 2016, 5:29:01 PM11/23/16
to jenkinsc...@googlegroups.com

I'll be interested in this enhancement as well

matt.friedman@gmail.com (JIRA)

unread,
Jan 27, 2017, 10:58:01 AM1/27/17
to jenkinsc...@googlegroups.com

Making the window for editing bigger would be great. If there were a way to open an external editor such as vi, even better.

block.jon@gmail.com (JIRA)

unread,
Feb 16, 2017, 4:48:01 PM2/16/17
to jenkinsc...@googlegroups.com
Jon B commented on Improvement JENKINS-38276

+1 for this. The textarea is so small it's virtually useless. I have to copy/paste the content of that into an IDE and then back again. Very very user unfriendly the way it is

jenkins@juliohm.com.br (JIRA)

unread,
Feb 23, 2017, 12:00:05 AM2/23/17
to jenkinsc...@googlegroups.com

+1

That tiny box is impossible to work with, even for minor script changes. I'm always copying/pasting to/from a real text editor.

toulousevictor@gmail.com (JIRA)

unread,
Sep 3, 2018, 3:36:02 AM9/3/18
to jenkinsc...@googlegroups.com

Hi. I made a userscript as a workaround.

https://gist.github.com/vctls/139adbefdb60b116de9d8ae39f9ba54b

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

toulousevictor@gmail.com (JIRA)

unread,
Sep 3, 2018, 3:44:02 AM9/3/18
to jenkinsc...@googlegroups.com
Victor Toulouse edited a comment on Bug JENKINS-38276
Hi. I made a userscript as a workaround.

https://gist.github.com/vctls/ 139adbefdb60b116de9d8ae39f9ba54b 26883c250d89bca0630d8712ab04fffd

matt.friedman@gmail.com (JIRA)

unread,
Sep 3, 2018, 10:23:02 AM9/3/18
to jenkinsc...@googlegroups.com

Hi Victor Toulouse - that looks very helpful. How do I use this in Jenkins? Do I put this script in a particular location? 

toulousevictor@gmail.com (JIRA)

unread,
Sep 3, 2018, 12:06:02 PM9/3/18
to jenkinsc...@googlegroups.com

No, you need a browser extension like greasemonkey or tampermonkey.
There may be a way of overriding the layout through a plugin or something, but I'm new to Jenkins so I don't know.

andrew.bayer@gmail.com (JIRA)

unread,
Nov 15, 2018, 12:23:04 PM11/15/18
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
 
Change By: Andrew Bayer
Issue Type: Bug Improvement

pauloneves@gmail.com (JIRA)

unread,
Nov 30, 2018, 1:58:04 PM11/30/18
to jenkinsc...@googlegroups.com
Paulo Eduardo Neves commented on Improvement JENKINS-38276
 
Re: Increase size of text area for pipeline script code

If you click F12, go to the Console tab and paste the commands below, it will improve a little:

 

{{ document.querySelector('.container').style.width = '100%';}}
{{ document.querySelector('.container').style.padding = '0';}}
{{ document.querySelector('.col-md-offset-2').style.width = '100%';}}
document.querySelector('.col-md-offset-2').style.margin = '0';

jglick@cloudbees.com (JIRA)

unread,
Nov 30, 2018, 2:03:03 PM11/30/18
to jenkinsc...@googlegroups.com

A pull request (tested against major browsers) would be very welcome.

o.v.nenashev@gmail.com (JIRA)

unread,
Jan 28, 2019, 2:20:05 AM1/28/19
to jenkinsc...@googlegroups.com

https://github.com/jenkinsci/jenkins/pull/2837 improves the situation a bit, but I rather prefer the proposal from Victor Toulouse . It would be nice to gave a pull request

aallen@quantcast.com (JIRA)

unread,
Feb 23, 2019, 11:59:03 AM2/23/19
to jenkinsc...@googlegroups.com

Made some enhancements to Victor Toulouse's solution/hack (thanks!) that allows resizing by restyling a parent container with resize:both and calling aceEditor.resize() at the proper times. Like his solution, you'll need Tampermonkey installed to run this UserScript, and since it uses ResizeObserver, it only works with modern Chrome versions. https://gist.github.com/a2intl/293a76ae3323ec21d7cdceb6f7cd63af 

marcel.meschenmoser@zund.com (JIRA)

unread,
Jul 29, 2019, 7:56:03 AM7/29/19
to jenkinsc...@googlegroups.com

The replay function is very useful, but with this stupid limitation it's a pain in the neck.

Please fix

marcel.meschenmoser@zund.com (JIRA)

unread,
Jul 29, 2019, 7:57:11 AM7/29/19
to jenkinsc...@googlegroups.com
Marcel Meschenmoser stopped work on Improvement JENKINS-38276
 
Change By: Marcel Meschenmoser
Status: In Progress Open

marcel.meschenmoser@zund.com (JIRA)

unread,
Jul 29, 2019, 7:57:11 AM7/29/19
to jenkinsc...@googlegroups.com
Marcel Meschenmoser started work on Improvement JENKINS-38276
 
Change By: Marcel Meschenmoser
Status: Open In Progress

bmathus+ossjira@cloudbees.com (JIRA)

unread,
Jul 29, 2019, 8:09:03 AM7/29/19
to jenkinsc...@googlegroups.com

stupid limitation

Marcel Meschenmoser Refrain from posting such offensive comment. It's generally undesired, and even more on an opensource project where nobody is paying for the time of others.

block.jon@gmail.com (JIRA)

unread,
Jul 29, 2019, 1:53:02 PM7/29/19
to jenkinsc...@googlegroups.com
Jon B commented on Improvement JENKINS-38276

Marcel Meschenmoser Can you improve it please?

I took a look at it and the widget that is being used didn't have a way to resize it at the time. If Marcel is passionate about it maybe he can close this ticket. I couldn't figure it out.

klass@ite-web.de (JIRA)

unread,
Aug 5, 2019, 12:39:05 PM8/5/19
to jenkinsc...@googlegroups.com

The editor div has class ui-resizable, and contains a div with class ui-resizable-handle. So I guess the intent was that it should be resizable? But it is not?

Where would you start looking to fix this issue?

mdebord@live.com (JIRA)

unread,
Dec 4, 2019, 6:21:03 PM12/4/19
to jenkinsc...@googlegroups.com
Matt Dee commented on Improvement JENKINS-38276

Fixing this text box would really help productivity. Another user here hoping to see this delivered. 

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

docwhat@gerf.org (JIRA)

unread,
Feb 20, 2020, 12:25:04 AM2/20/20
to jenkinsc...@googlegroups.com

This CSS fixes it. The link to the pipeline syntax can get messy, but better than not having resize.

.ace_editor {
  resize:vertical; overflow:auto !important;
}

docwhat@gerf.org (JIRA)

unread,
Feb 20, 2020, 1:32:04 AM2/20/20
to jenkinsc...@googlegroups.com

Even better: The ui-resizable-handle actually works!

This CSS makes it available (with horrible colors!):

 

.ui-resizable-handle {
 position: absolute;
 bottom: 0;
 background-color: #1f7313;
 width: 100%;
 height: 10px;
 cursor: row-resize;
 opacity: 0.1;
}
.ui-resizable-handle:hover {
 opacity: 0.6;
}

 

 

jglick@cloudbees.com (JIRA)

unread,
Feb 20, 2020, 2:29:04 PM2/20/20
to jenkinsc...@googlegroups.com

Tested pull requests would be very welcome!

pritesh.kanani123@gmail.com (JIRA)

unread,
Mar 6, 2020, 6:20:04 AM3/6/20
to jenkinsc...@googlegroups.com
Pritesh Kanani assigned an issue to Pritesh Kanani
 
Change By: Pritesh Kanani
Assignee: Pritesh Kanani
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages