OctopusDeploy / Library

| Public | A repository of step templates and other community-contributed extensions to Octopus Deploy
Other
171 stars 504 forks source link

Fixing code to capture exit code #1401

Closed twerthi closed 1 year ago

twerthi commented 1 year ago

Background

The $executionResults object, ExitCode property was being assigned before the WaitForExit() method could which potentially result in a null value. Code has been updated to capture exit code after the process has completed.

Results

Exit code should now be properly recorded.

Before

Exit code property could have been null

After

Exit code should now have a value.

Pre-requisites