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

non resizable Execute Shell text filed leads to clutter in job configuration page

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Execute Batch text field is dynamic width text field with width set to expand to show all chars in the text field. General problem is if text filed consists long one line entries (eg. command lines with multiple input parameters), this field is expanding towards right side of the screen.

      This field is anchored together with other options so all controls on right side of the screen (all Advanced... buttons, all text fields) are dragged to the right edge together with Execute Batch field.

      In some cases (our jobs with pretty complex and long commands) this leads that Batch Command filed is expanded beyond right side of the screen ( > 1700px) together with other controls and fields. Job configure page becomes problematic to be used.

      Solutions:

      • make Batch Command text filed the same as Execute Windows batch so user can expand manually
      • undock text filed from rest of the css/table so really long text field will not drag other controls.

        Attachments

          Issue Links

            Activity

            Hide
            brantone Brantone added a comment -

            Attached screen shot example ... and worth noting that it isn't just Execute Shell, but any textarea.

            Show
            brantone Brantone added a comment - Attached screen shot example ... and worth noting that it isn't just Execute Shell, but any textarea.
            Hide
            grb19 Steffen Seckler added a comment -

            I can confirm this bug. It appeared after updating to Jenkins 2.

            Show
            grb19 Steffen Seckler added a comment - I can confirm this bug. It appeared after updating to Jenkins 2.
            Hide
            justincredible Justin Unterreiner added a comment -

            This was making it extremely frustrating to edit our Jenkins jobs because no matter how wide you make the browser window, the fields just keep stretching which leads to lots of horizontal scrolling.

            To work around this we use a browser extension (like Stylish) to add inject a CSS selector to cap the width of the CodeMirror div.

            div.CodeMirror

            { width: 600px; }
            Show
            justincredible Justin Unterreiner added a comment - This was making it extremely frustrating to edit our Jenkins jobs because no matter how wide you make the browser window, the fields just keep stretching which leads to lots of horizontal scrolling. To work around this we use a browser extension (like Stylish ) to add inject a CSS selector to cap the width of the CodeMirror div. div.CodeMirror { width: 600px; }
            Hide
            miro_lago Miro Lago added a comment -

            Another workaround is to divide long command to multiple lines. I did it for linux execute shell and it's an acceptable sollution

            Show
            miro_lago Miro Lago added a comment - Another workaround is to divide long command to multiple lines. I did it for linux execute shell and it's an acceptable sollution
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: gusreiber
            Path:
            core/src/main/resources/lib/form/textarea/textarea.css
            http://jenkins-ci.org/commit/jenkins/67df10db2d4e0620ba4e7fde399c4340d39604b6
            Log:
            JENKINS-35263 displaying codeMirror as table to fix page sizing (#2575)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: gusreiber Path: core/src/main/resources/lib/form/textarea/textarea.css http://jenkins-ci.org/commit/jenkins/67df10db2d4e0620ba4e7fde399c4340d39604b6 Log: JENKINS-35263 displaying codeMirror as table to fix page sizing (#2575)
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Closing as a duplicate of JENKINS-27367 , which has been released in jenkins-2.26

            Show
            oleg_nenashev Oleg Nenashev added a comment - Closing as a duplicate of JENKINS-27367 , which has been released in jenkins-2.26

              People

              • Assignee:
                Unassigned
                Reporter:
                omka Paul Walter
              • Votes:
                4 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: