Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send file probelm #2

Open
armanbaghajyan opened this issue May 24, 2018 · 0 comments
Open

Send file probelm #2

armanbaghajyan opened this issue May 24, 2018 · 0 comments

Comments

@armanbaghajyan
Copy link

Thank you for WinRM plugin it was awesome.

Could you help me.

I am building my project on linux environment and trying to send files through winrm from linux machine to windows.

Output log was this

=============================
The argument '& '/tmp/jenkins9004652567961170467.ps1'' is not recognized as the name of a script file. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Usage: pwsh[.exe] [[-File] [args]]
[-Command { - | [-args ]
| [] } ]
[-ConfigurationName ] [-EncodedCommand ]
[-ExecutionPolicy ] [-InputFormat {Text | XML}]
[-Interactive] [-NoExit] [-NoLogo] [-NonInteractive] [-NoProfile]
[-OutputFormat {Text | XML}] [-Version] [-WindowStyle <style>]
[-WorkingDirectory ]

   pwsh[.exe] -h | -Help | -? | /?

=============================

problem was in this "& '"and "'" symbols from
return new String[]{"powershell", "-NonInteractive", "& '" + script.getRemote() + "'"};
could you help me with my problem
Thenk you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant