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

          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.

          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.

          James Dumay added a comment -

          Thanks comscience15

          James Dumay added a comment - Thanks comscience15

          Nat Sr added a comment - - edited

          jamesdumay So is it duplicated with another one that you linked?

          Nat Sr added a comment - - edited jamesdumay So is it duplicated with another one that you linked?

          Nat Sr added a comment -

          jamesdumay Hi, James

          I know this bug is minor but is it possible to get it fixed and be released in Release 1.3?  It would be great it can.

          Thanks,
          Nat

          Nat Sr added a comment - jamesdumay Hi, James I know this bug is minor but is it possible to get it fixed and be released in Release 1.3?  It would be great it can. Thanks, Nat

          James Dumay added a comment -

          comscience15 a bit late for 1.3 (about to be released) but I can see what we can do about 1.4.

          James Dumay added a comment - comscience15 a bit late for 1.3 (about to be released) but I can see what we can do about 1.4.

          Nat Sr added a comment -

          jamesdumay Thanks James

          Nat Sr added a comment - jamesdumay Thanks James

          Nat Sr added a comment -

          jamesdumay Hi James, do you have any updates that this issue will be fixed in 1.4?

          Nat Sr added a comment - jamesdumay Hi James, do you have any updates that this issue will be fixed in 1.4?

          Nat Sr added a comment -

          jamesdumay bump..

          Nat Sr added a comment - jamesdumay bump..

          Aaron Curley added a comment -

          Definitely a desired item from my team's perspective as well. Certainly not a blocker though.

          Thanks for all that you folks do!

          Aaron Curley added a comment - Definitely a desired item from my team's perspective as well. Certainly not a blocker though. Thanks for all that you folks do!

          Nat Sr added a comment -

          Wow!  thank you very much all. I am looking forward to get that version out and give it a try

          Nat Sr added a comment - Wow!  thank you very much all. I am looking forward to get that version out and give it a try

          Darius added a comment -

          Looking at GitHub, this seems to be reverted by https://github.com/jenkinsci/blueocean-plugin/pull/1712

          I can still see the issue on Blue Ocean 1.24.7

          Darius added a comment - Looking at GitHub, this seems to be reverted by https://github.com/jenkinsci/blueocean-plugin/pull/1712 I can still see the issue on Blue Ocean 1.24.7

          m l added a comment -

          I have the same problem: \n and <br> do not work as new line characters for parameter discription in blue ocean ui.

          m l added a comment - I have the same problem: \n and <br> do not work as new line characters for parameter discription in blue ocean ui.

          Edgars Batna added a comment -

          Another nail in the Blue Ocean coffin...

          Edgars Batna added a comment - Another nail in the Blue Ocean coffin...

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

              Created:
              Updated: