[JIRA] (JENKINS-52884) durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1
Title: Message Title Devin Nusbaum updated JENKINS-52884 A fix for this issue was just released in version 1.30 of Durable Task Plugin. Jenkins / JENKINS-52884 durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1 Change By: Devin Nusbaum Status: Fixed but Unreleased Resolved Released As: durable-task 1.30 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.192823.1533344703000.3182.1562354640661%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-52884) durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1
Title: Message Title Mykola Ulianytskyi commented on JENKINS-52884 Re: durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1 When the updated plugin will be released? Thank you 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. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-52884) durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1
Title: Message Title Gabriel Loewen commented on JENKINS-52884 Re: durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1 PR sent https://github.com/jenkinsci/durable-task-plugin/pull/90 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. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-52884) durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1
Title: Message Title Gabriel Loewen updated JENKINS-52884 Jenkins / JENKINS-52884 durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1 Change By: Gabriel Loewen Status: Open Fixed but Unreleased Resolution: Fixed 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. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-52884) durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1
Title: Message Title Gabriel Loewen commented on JENKINS-52884 Re: durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1 The change to using -Command was to solve a different regression in Powershell versions < 5. The fix here is to add an additional exit $LASTEXITCODE within the command block. e.g.: & powershell -ExecutionPolicy ByPass -Command "& .\test.ps1; exit $LASTEXITCODE;" $LASTEXITCODE 2 I'll send a PR shortly with this fix. 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. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-52884) durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1
Title: Message Title Dustin Escoffery assigned an issue to Gabriel Loewen Jenkins / JENKINS-52884 durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1 Change By: Dustin Escoffery Assignee: Gabriel Loewen 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. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-52884) durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1
Title: Message Title Dustin Escoffery commented on JENKINS-52884 Re: durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1 I believe the bug was introduced in https://github.com/jenkinsci/durable-task-plugin/pull/71 https://github.com/jenkinsci/durable-task-plugin/commit/e7f0dd5e7c7018b58dac08bfbc49b8037480a282 Consider powershell script "test.ps1" with contents: exit 2 Prior to the change, the old method correctly sets the error code to 2: & powershell -ExecutionPolicy ByPass -File test.ps1 $LASTEXITCODE 2 After the change (durable-task 1.23 and above), the new method incorrectly sets the error code to 1: & powershell -ExecutionPolicy ByPass -Command "& .\test.ps1" $LASTEXITCODE 1 This example uses PSVersion 5.1.16299.967 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. For more options, visit
[JIRA] (JENKINS-52884) durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1
Title: Message Title Dustin Escoffery created an issue Jenkins / JENKINS-52884 durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1 Issue Type: Bug Assignee: Unassigned Components: durable-task-plugin Created: 2018-08-04 01:05 Environment: Jenkins ver. 2.121.2 durable-task-plugin 1.23 Priority: Minor Reporter: Dustin Escoffery After upgrading to durable-task-plugin 1.23, the powershell step does not return the correct non-zero exit code. In version 1.22 the code was correct. powershell 'exit 123' ERROR: script returned exit code 1 def status = powershell(returnStatus:true, script:'exit 123') echo "$status" [Pipeline] echo 1