[JIRA] (JENKINS-56925) extra newline character from powershell output

2019-06-17 Thread p...@vizrt.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Patrik Ehringer edited a comment on  JENKINS-56925  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: extra newline character from powershell output   
 

  
 
 
 
 

 
  Maybe this is related...The console output is different for the 2 scripts below - depending on if 'returnStdout: true' is used or not.The second script does it right, the first - where 'returnStdout: true' is used - does it wrong.I'm quite sure that the first script also worked correctly 2 months or so ago.  {code:java}pipeline {agent anystages {stage('Test') {steps  {script {stdo = powershell(returnStdout: true, script: ''' Write-Host "Will there be a newline after me? " -NoNewLine Write-Host "Yes! -> Unfortunately!"''')}script {powershell(script: ''' Write-Host "Will there be a newline after me? " -NoNewLine Write-Host "No! -> Great!"''')}}}}}{code}  {noformat}  [Pipeline] {[Pipeline] stage[Pipeline] { (Test)[Pipeline] script[Pipeline] {[Pipeline] powershellWill there be a newline after me? Yes! -> Unfortunately![Pipeline] }[Pipeline] // script[Pipeline] script[Pipeline] {[Pipeline] powershellWill there be a newline after me? No! -> Great![Pipeline] }[Pipeline] // script[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineFinished: SUCCESS{noformat}    
 

  
 
 
 
 

 
 
 

 
 
 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.198603.1554635511000.1810.1560787560141%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-56925) extra newline character from powershell output

2019-06-17 Thread p...@vizrt.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Patrik Ehringer commented on  JENKINS-56925  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: extra newline character from powershell output   
 

  
 
 
 
 

 
   Maybe this is related... The console output is different for the 2 scripts below - depending on if 'returnStdout: true' is used or not. The second script does it right, the first - where 'returnStdout: true' is used - does it wrong. I'm quite sure that the first script also worked correctly 2 months or so ago. 

 

pipeline {
agent any
stages {
stage('Test') {
steps  {
script {
stdo = powershell(returnStdout: true, script: '''
Write-Host "Will there be a newline after me? " -NoNewLine
Write-Host "Yes! -> Unfortunately!"
''')
}
script {
powershell(script: '''
Write-Host "Will there be a newline after me? " -NoNewLine
Write-Host "No! -> Great!"
''')
}
}
}
}
}

 

      
 

  
 
 
 
 

 
 
 

 
 
 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.198603.1554635511000.1807.1560787500142%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.