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

User Input text doesn't be formatted in Blue Ocean

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • None
    • Blue Ocean 1.6 - beta 1

      I see the unformatted when compare with normal Jenkins pipeline (not blue ocean) for User interact input in run time. For previous version (without blue ocean), it is formatted, such new line for \n, but in Blue Ocean doesn't at all.

      If this ticket is duplicated and got fixed, could you please link me the ticket? My apologies if it is duplicated but I couldn't find the existing ticket about this yet.

          [JENKINS-45251] User Input text doesn't be formatted in Blue Ocean

          Nat Sr created issue -

          James Dumay added a comment -

          comscience15 could you please provide us with some screenshots and reproduction instructions?

          James Dumay added a comment - comscience15 could you please provide us with some screenshots and reproduction instructions?

          James Dumay added a comment -

          Please provide a Jenkinsfile and a screenshot as an example then reopen this ticket.

          James Dumay added a comment - Please provide a Jenkinsfile and a screenshot as an example then reopen this ticket.
          James Dumay made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Nat Sr made changes -
          Attachment New: Original_Jenkins_Dashboard.png [ 38756 ]
          Attachment New: Blue_Ocean_Dashboard.png [ 38757 ]

          Nat Sr added a comment - - edited

          jamesdumay Below is a sample of Jenkisfile

          pipeline {
              agent any
              stages {
                  stage("1) Test") {
                      steps {
                          script {
                              try {
                                  input 'Test open google Photots\n\n' +
                                        '1) Open https://www.google.com/search?q=photo+test&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiK172Zp_PUAhUHrVQKHeD4CREQ_AUICigB&biw=1421&bih=895\n' +
                                        '2) Please open one of these photos and see which one you like\n\n\n\n' +
                                        'Click "Proceed" to continue....'
                              } catch(err) {
                                  currentBuild.result = "FAILURE"
                                    mail body: "unable to open",
                                    from: "test@aloha.com",
                                    replyTo: "",
                                    subject: "CANNOT OPEN GOOGLE PHOTOS!!!",
                                    to: "test@aloha.com"
                                  throw err
                              }
                          }
                      }
                  }
              }
          }
          
          

          2 Screenshots to compare between normal and blue ocean Jenkins dashboard. you can see Blue Ocean doesn't format the same way of original.

          Nat Sr added a comment - - edited jamesdumay Below is a sample of Jenkisfile pipeline {     agent any     stages {         stage( "1) Test" ) {             steps {                 script {                     try {                         input 'Test open google Photots\n\n' +                               '1) Open https: //www.google.com/search?q=photo+test&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiK172Zp_PUAhUHrVQKHeD4CREQ_AUICigB&biw=1421&bih=895\n' +                               '2) Please open one of these photos and see which one you like\n\n\n\n' +                               'Click "Proceed" to continue ....'                     } catch (err) {                         currentBuild.result = "FAILURE"                           mail body: "unable to open" ,                           from: "test@aloha.com" ,                           replyTo: "",                           subject: "CANNOT OPEN GOOGLE PHOTOS!!!" ,                           to: "test@aloha.com"                         throw err                     }                 }             }         }     } } 2 Screenshots to compare between normal and blue ocean Jenkins dashboard. you can see Blue Ocean doesn't format the same way of original.
          Nat Sr made changes -
          Resolution Original: Cannot Reproduce [ 5 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Nat Sr made changes -
          Attachment Original: Original_Jenkins_Dashboard.png [ 38756 ]
          Nat Sr made changes -
          Attachment New: Original_Jenkins_Dashboard.png [ 38758 ]
          Nat Sr made changes -
          Assignee New: James Dumay [ jamesdumay ]

            nicu Nicolae Pascu
            comscience15 Nat Sr
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: