{"action":"created","issue":{"url":"https://api.github.com/repos/NetDocuments/rd-winrm-plugin/issues/9","labels_url":"https://api.github.com/repos/NetDocuments/rd-winrm-plugin/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/NetDocuments/rd-winrm-plugin/issues/9/comments","events_url":"https://api.github.com/repos/NetDocuments/rd-winrm-plugin/issues/9/events","html_url":"https://github.com/NetDocuments/rd-winrm-plugin/issues/9","id":115422566,"number":9,"title":"Errors are not detected as errors and out is in the wrong order","user":{"login":"pecigonzalo","id":9908105,"avatar_url":"https://avatars.githubusercontent.com/u/9908105?v=3","gravatar_id":"","url":"https://api.github.com/users/pecigonzalo","html_url":"https://github.com/pecigonzalo","followers_url":"https://api.github.com/users/pecigonzalo/followers","following_url":"https://api.github.com/users/pecigonzalo/following{/other_user}","gists_url":"https://api.github.com/users/pecigonzalo/gists{/gist_id}","starred_url":"https://api.github.com/users/pecigonzalo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pecigonzalo/subscriptions","organizations_url":"https://api.github.com/users/pecigonzalo/orgs","repos_url":"https://api.github.com/users/pecigonzalo/repos","events_url":"https://api.github.com/users/pecigonzalo/events{/privacy}","received_events_url":"https://api.github.com/users/pecigonzalo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-06T02:43:31Z","updated_at":"2016-01-01T10:03:47Z","closed_at":null,"body":"I have some scripts that have errors in the execution but the job finishes as successful.\r\nIn some cases im also getting the error output printed before the output of echo commands that execute before it.\r\n\r\n```\r\nmv : Cannot create a file when that file already exists.\r\nAt C:\\WINDOWS\\TEMP\\12-102-DIWEB_SelfService-dispatch-script.tmp.ps1:16 char:1\r\n+ mv \"./Temp/$ArtifactName\" $env:TEMP\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : WriteError: (C:\\Users\\SI5559...ortal-0.5.0.zip:F \r\n   ileInfo) [Move-Item], IOException\r\n    + FullyQualifiedErrorId : MoveFileInfoItemIOError,Microsoft.PowerShell.Com \r\n   mands.MoveItemCommand\r\n \r\nException calling \"ExtractToDirectory\" with \"2\" argument(s): \"Could not find \r\nfile 'C:\\Users\\SI555945\\selfservice.portal-0.5.0.zip'.\"\r\nAt C:\\WINDOWS\\TEMP\\12-102-DIWEB_SelfService-dispatch-script.tmp.ps1:19 char:1\r\n+ [System.IO.Compression.ZipFile]::ExtractToDirectory($ArtifactName, \r\n\"./$ArtifactN ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n~~~\r\n    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException\r\n    + FullyQualifiedErrorId : FileNotFoundException\r\n```"},"comment":{"url":"https://api.github.com/repos/NetDocuments/rd-winrm-plugin/issues/comments/168296825","html_url":"https://github.com/NetDocuments/rd-winrm-plugin/issues/9#issuecomment-168296825","issue_url":"https://api.github.com/repos/NetDocuments/rd-winrm-plugin/issues/9","id":168296825,"user":{"login":"pecigonzalo","id":9908105,"avatar_url":"https://avatars.githubusercontent.com/u/9908105?v=3","gravatar_id":"","url":"https://api.github.com/users/pecigonzalo","html_url":"https://github.com/pecigonzalo","followers_url":"https://api.github.com/users/pecigonzalo/followers","following_url":"https://api.github.com/users/pecigonzalo/following{/other_user}","gists_url":"https://api.github.com/users/pecigonzalo/gists{/gist_id}","starred_url":"https://api.github.com/users/pecigonzalo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pecigonzalo/subscriptions","organizations_url":"https://api.github.com/users/pecigonzalo/orgs","repos_url":"https://api.github.com/users/pecigonzalo/repos","events_url":"https://api.github.com/users/pecigonzalo/events{/privacy}","received_events_url":"https://api.github.com/users/pecigonzalo/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T10:03:47Z","updated_at":"2016-01-01T10:03:47Z","body":"Will do this Monday morning thanks!"}}