-
Notifications
You must be signed in to change notification settings - Fork 5
Description
When I use this plugin for test, the test file is test.ps1. The gocd version is 15.1.0 , jdk1.8-25, Win7
I can see the result output in the gocd's console:
15:20:08.592 [go] Start to execute task: Plugin with ID: gocd-powershell-runner.
15:20:08.593 Launching command: C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -NoProfile -ExecutionPolicy ByPass -File test.ps1 -version 2.1
15:20:08.832 Executing script
15:20:08.832 Version passed in is
15:20:08.835 Is 64 bit:
15:20:08.837 Argument: -version 2.1
even if I add <NUL as the last script paramter cannot solve this problem.
Do we need add process.getOutputStream().close() to close the process?
But the job always in the building state,after 5 minutes there is warning tip said that maybe the agent hang on.
And in windows process I can see the powershell process exist