[JIRA] (JENKINS-50456) Pipeline continues after powershell error

2018-03-28 Thread wouter.s...@ortec.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wouter Slob closed an issue as Not A Defect  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Confirmed! This works: node("") {     ws("x:\src") {         powershell 'Copy-Item "a.xml" -Destination "b.xml" -ErrorAction Stop'     } }   Thnx!  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-50456  
 
 
  Pipeline continues after powershell error   
 

  
 
 
 
 

 
Change By: 
 Wouter Slob  
 
 
Status: 
 Open Closed  
 
 
Resolution: 
 Not A Defect  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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 

[JIRA] (JENKINS-50456) Pipeline continues after powershell error

2018-03-28 Thread gab...@microsoft.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Gabriel Loewen commented on  JENKINS-50456  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Pipeline continues after powershell error   
 

  
 
 
 
 

 
 This isn't really a pipeline bug. In PowerShell there is a concept of terminating and non-terminating errors, and your error preference is controlled via the preference variable $ErrorActionPreference for a script scoped change, or by passing -ErrorAction to the cmdlet you are using. The system default is "Continue", which is why your errors seem to be ignored. By passing a value of "Stop" you should see the behavior that you expect.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-50456) Pipeline continues after powershell error

2018-03-28 Thread svano...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sam Van Oort assigned an issue to Gabriel Loewen  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50456  
 
 
  Pipeline continues after powershell error   
 

  
 
 
 
 

 
Change By: 
 Sam Van Oort  
 
 
Assignee: 
 Sam Van Oort Gabriel Loewen  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-50456) Pipeline continues after powershell error

2018-03-28 Thread svano...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sam Van Oort assigned an issue to Sam Van Oort  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50456  
 
 
  Pipeline continues after powershell error   
 

  
 
 
 
 

 
Change By: 
 Sam Van Oort  
 
 
Assignee: 
 Sam Van Oort  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-50456) Pipeline continues after powershell error

2018-03-28 Thread wouter.s...@ortec.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wouter Slob commented on  JENKINS-50456  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Pipeline continues after powershell error   
 

  
 
 
 
 

 
 Sam Van Oort: can you please have a look? Thnx!  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-50456) Pipeline continues after powershell error

2018-03-28 Thread wouter.s...@ortec.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wouter Slob updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50456  
 
 
  Pipeline continues after powershell error   
 

  
 
 
 
 

 
Change By: 
 Wouter Slob  
 

  
 
 
 
 

 
 Pipeline script continues after errors in powershell script. * Pipeline (none of the mentioned files exist!): *  node _node ("...") \{ _       ws  _ws ("x:\src") \{ _           powershell  _powershell  'Copy-Item "a.xml" -Destination "b.xml"' _       _  } _   _  } _  * output: *   _  [Pipeline] \{ _   _  [Pipeline]  ws  ws_   Running  _Running  in x:\ src src_   _  [Pipeline] \{ _   _  [Pipeline]  powershell  powershell_   _  [src] Running PowerShell  script  script_   powershell  _powershell .exe : Copy-Item : Cannot find path 'X:\src\a.xml' because it does not exist. _   At  _At  X:\src@tmp\durable-472cdca6\powershellWrapper.ps1:5 char: 3 3_   _  + & powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -Fi ... _   _  + ~~~ _   _  + CategoryInfo : NotSpecified: (Copy-Item : Can...does not exist. :String) [],  RemoteException  RemoteException_   _  + FullyQualifiedErrorId :  NativeCommandError  NativeCommandError_  At _At  X:\src@tmp\durable-472cdca6\powershellScript.ps1:1 char: 1 1_  _ + Copy-Item "a.xml" -Destination "b.xml" _  _ + ~~ _  _ + CategoryInfo : ObjectNotFound: (X:\src\a.xml:String) [Copy- Item Item_  _ ],  ItemNotFoundException  ItemNotFoundException_  {color:#ff}_ + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands. CopyI CopyI_{color}  temCommand _temCommand_  _ [Pipeline] } _   _  [Pipeline] //  ws  ws_   _  [Pipeline] } _   _  [Pipeline] //  node  node_   _  [Pipeline] End of  Pipeline  Pipeline_   Finished  _Finished :  {color:#ff}  SUCCESS {color}_  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 
   

[JIRA] (JENKINS-50456) Pipeline continues after powershell error

2018-03-28 Thread wouter.s...@ortec.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wouter Slob updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50456  
 
 
  Pipeline continues after powershell error   
 

  
 
 
 
 

 
Change By: 
 Wouter Slob  
 

  
 
 
 
 

 
 Pipeline script continues after errors in powershell script.Pipeline (none of the mentioned files exist!):node("...") \{    ws("x:\ \ src") \{        powershell 'Copy-Item "a.xml" -Destination "b.xml"'    }}output:[Pipeline] \{[Pipeline] wsRunning in x:\src[Pipeline] \{[Pipeline] powershell[src] Running PowerShell scriptpowershell.exe : Copy-Item : Cannot find path 'X:\src\a.xml' because it does not exist.At X:\src@tmp\durable-472cdca6\powershellWrapper.ps1:5 char:3+   & powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -Fi ...+   ~~~+ CategoryInfo  : NotSpecified: (Copy-Item : Can...does not exist.:String) [], RemoteException+ FullyQualifiedErrorId : NativeCommandErrorAt X:\src@tmp\durable-472cdca6\powershellScript.ps1:1 char:1+ Copy-Item "a.xml" -Destination "b.xml"+ ~~+ CategoryInfo  : ObjectNotFound: (X:\src\a.xml:String) [Copy-Item    ], ItemNotFoundException+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyI    temCommand   [Pipeline] }[Pipeline] // ws[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineFinished: SUCCESS  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 
   

[JIRA] (JENKINS-50456) Pipeline continues after powershell error

2018-03-28 Thread wouter.s...@ortec.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Wouter Slob created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50456  
 
 
  Pipeline continues after powershell error   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 durable-task-plugin  
 
 
Created: 
 2018-03-28 12:50  
 
 
Environment: 
 jenkins 2.89.4, durable-task-plugin 1.22  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Wouter Slob  
 

  
 
 
 
 

 
 Pipeline script continues after errors in powershell script. Pipeline (none of the mentioned files exist!): node("...") {     ws("x:src") {         powershell 'Copy-Item "a.xml" -Destination "b.xml"'     } } output: [Pipeline] { [Pipeline] ws Running in x:\src [Pipeline] { [Pipeline] powershell [src] Running PowerShell script powershell.exe : Copy-Item : Cannot find path 'X:\src\a.xml' because it does not exist. At X:\src@tmp\durable-472cdca6\powershellWrapper.ps1:5 char:3 + & powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -Fi ... + ~~~ + CategoryInfo : NotSpecified: (Copy-Item : Can...does not exist. :String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError At X:\src@tmp\durable-472cdca6\powershellScript.ps1:1 char:1 + Copy-Item "a.xml" -Destination "b.xml" + ~~  + CategoryInfo : ObjectNotFound: (X:\src\a.xml:String) [Copy-Item   ], ItemNotFoundException  + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyI   temCommand [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS