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

2019-06-21 Thread rkoma...@alliedtesting.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Roman Komarov edited a comment on  JENKINS-53649  
 

  
 
 
 
 

 
 
  
 
 
 
 

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

  
 
 
 
 

 
 [~larry_west], I've found an ugly workaround to this - avoid using env and params in echo output as much as possible and then make a second echo showing the actual output. This still leaves lots of "Print message" in BlueOcean output, but at least people can see the actual  phase  action within the step .But you are right, this is very annoying and users become reluctant to use BO because of this.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.194144.1537309242000.5483.1561127400344%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


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

2019-06-21 Thread rkoma...@alliedtesting.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Roman Komarov commented on  JENKINS-53649  
 

  
 
 
 
 

 
 
  
 
 
 
 

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

  
 
 
 
 

 
 Larry West, I've found an ugly workaround to this - avoid using env and params in echo output as much as possible and then make a second echo showing the actual output. This still leaves lots of "Print message" in BlueOcean output, but at least people can see the actual phase. But you are right, this is very annoying and users become reluctant to use BO because of this.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.194144.1537309242000.5468.1561127340385%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


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

2019-05-23 Thread rkoma...@alliedtesting.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Roman Komarov commented on  JENKINS-53649  
 

  
 
 
 
 

 
 
  
 
 
 
 

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

  
 
 
 
 

 
 Same happens if echo uses a variable from parameters (i.e. anything from params.*). Does not matter if the variable is a String or not, even explicitly converting the params value to String does not help.    

 

String param_str
String text_var_2

parameters {
string(name: 'str_param', defaultValue: 'no value')
}

...
                    param_str = params.str_param.toString()

                    echo "string text in double quotes is ${param_str}"
                    echo "simple quoted string is here"
                    echo 'simple quoted string is here' 
                    echo 'Single quoted with str ' + param_str + ' is here'
                    echo param_str                    
                    text_var_2 = 'Single quoted str ' + param_str + ' combined' 
                    echo "GString global text2 is ${text_var_2}" 
                    echo 'String global text2 is' +  text_var_2

 

     The output is as this:  Anything that contains the variable from param is "Print Message". If a variable is a simple string or a calculated integer - it is shown in the step label normally.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit 

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

2019-05-23 Thread rkoma...@alliedtesting.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Roman Komarov updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

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

  
 
 
 
 

 
Change By: 
 Roman Komarov  
 
 
Attachment: 
 print_message_param_string.png  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.194144.1537309242000.10461.1558632900375%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


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

2019-05-23 Thread rkoma...@alliedtesting.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Roman Komarov updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

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

  
 
 
 
 

 
Change By: 
 Roman Komarov  
 
 
Attachment: 
 print_message_param_string.png  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.194144.1537309242000.10448.1558632840926%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.