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

Strings from the "echo" step are suppressed in BlueOcean UI if they contain values found in an environment variable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • workflow-cps-plugin
    • Jenkins: 2.138.1
      BlueOcean plugin: 1.8.2
      A clean install on Windows 7 with just a standard set of plugins
      Reproed with Chrome on Windows and Firefox on a Linux desktop

      When a string is displayed in the BlueOcean UI from an "echo" step, the string "Print Message" is displayed IF the string being echoed contains a substring that matches the contents of any environment variable. 

      Repro steps:

      Create a pipeline with this code:

      pipeline {
          agent any
          stages {
              stage('test') {
                  environment {
                      THING = 'foobarbuzz'
                  }
                  steps {
                      echo "blah"
                      echo "foobarbuzz"
                      echo "foobarZZZbuzz"
                      echo "This is a $THING here"
                  }
              }
          }
      }

      Run the pipeline via Blue Ocean

      Observe that there are four step labels displayed in the Blue Ocean UI. (see attached screenshot)  The first and third steps display the strings from "echo" as expected.  But, the second and fourth steps display only "Print Message" and don't show the expected string.  The user needs to click the step to expand it to see the string.  I would expect that all strings from all echo statements should show up in the main Blue Ocean UI and would not require some to be manually expended.

       

          [JENKINS-53649] Strings from the "echo" step are suppressed in BlueOcean UI if they contain values found in an environment variable

          S Nelson created issue -
          S Nelson made changes -
          Attachment New: EchoNotShowingSomeStrings.PNG [ 44522 ]
          Description Original: When a string is displayed in the BlueOcean UI from an "echo" step, the string "Print Message" is displayed IF the string being echoed contains a substring that matches the contents of any environment variable. 

          Repro steps:

          Create a pipeline with this code:
          {noformat}
          pipeline {
              agent any
              stages {
                  stage('test') {
                      environment {
                          THING = 'foobarbuzz'
                      }
                      steps {
                          echo "blah"
                          echo "foobarbuzz"
                          echo "foobarZZZbuzz"
                          echo "This is a $THING here"
                      }
                  }
              }
          }{noformat}
          Run the pipeline via BlueOcean

          Observe that there are four step labels displayed in the BlueOcean UI.  The first and third steps display the strings as expected.  But, the second and fourth steps display only "Print Message" and don't show the expected string.  The user needs to click the step to expand it to see the string.

           
          New: When a string is displayed in the BlueOcean UI from an "echo" step, the string "Print Message" is displayed IF the string being echoed contains a substring that matches the contents of any environment variable. 

          Repro steps:

          Create a pipeline with this code:
          {noformat}
          pipeline {
              agent any
              stages {
                  stage('test') {
                      environment {
                          THING = 'foobarbuzz'
                      }
                      steps {
                          echo "blah"
                          echo "foobarbuzz"
                          echo "foobarZZZbuzz"
                          echo "This is a $THING here"
                      }
                  }
              }
          }{noformat}
          Run the pipeline via Blue Ocean

          Observe that there are four step labels displayed in the Blue Ocean UI. (see attached screenshot)  The first and third steps display the strings from "echo" as expected.  But, the second and fourth steps display only "Print Message" and don't show the expected string.  The user needs to click the step to expand it to see the string.  I would expect that all strings from all echo statements should show up in the main Blue Ocean UI and would not require some to be manually expended.

           
          Summary Original: Strings from the "echo" step are suppressed in BlueOcean UI if they contain values found in ENVIRONMENT New: Strings from the "echo" step are suppressed in BlueOcean UI if they contain values found in an environment variable
          Roman Komarov made changes -
          Attachment New: print_message_param_string.png [ 47494 ]
          Roman Komarov made changes -
          Attachment New: print_message_param_string.png [ 47495 ]
          Brian J Murrell made changes -
          Attachment New: image-2019-10-24-07-05-23-113.png [ 49301 ]
          CHRISTOPHER KELLY made changes -
          Link New: This issue is duplicated by JENKINS-60939 [ JENKINS-60939 ]
          Reinhold Füreder made changes -
          Link New: This issue is related to JENKINS-55612 [ JENKINS-55612 ]
          Harry Weppner made changes -
          Component/s New: workflow-cps-plugin [ 21713 ]
          Component/s Original: blueocean-plugin [ 21481 ]
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-47101 [ JENKINS-47101 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            sirgnip S Nelson
            Votes:
            25 Vote for this issue
            Watchers:
            29 Start watching this issue

              Created:
              Updated:
              Resolved: