Skip to content

power shell executed but hang on the job #6

Description

@fivesix

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions