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

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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • Centos 7, Jenkins 2.7

      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.

          [JENKINS-35263] non resizable Execute Shell text filed leads to clutter in job configuration page

          Brantone added a comment -

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

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

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

          Steffen Seckler added a comment - I can confirm this bug. It appeared after updating to Jenkins 2.

          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;
          }

          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; }

          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

          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

          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)

          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)

          Oleg Nenashev added a comment -

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

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

          For your information, all related to this Jira component have been transferred to Github: https://github.com/jenkinsci/configure-job-column-plugin/issues

          Note: this is an automated bulk comment

          Alexander Brandes added a comment - For your information, all related to this Jira component have been transferred to Github: https://github.com/jenkinsci/configure-job-column-plugin/issues Note: this is an automated bulk comment

            Unassigned Unassigned
            omka Paul Walter
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: