-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Start builds/tests over ssh/pywinrm in VagrantPlaybookCheck.sh #1296
Comments
Starting the scripts on the linux and freebsd vagrant VMs is relatively trivial as ssh keys are already put into the working directory ( https://github.com/AdoptOpenJDK/openjdk-infrastructure/blob/f6ba51beaa6db4f3585945ff046a5e41d5cc5753/ansible/pbTestScripts/vagrantPlaybookCheck.sh#L195 ) , and subsequently put into the VM's Therefore, something such as
would do the job |
Using While it's fairly easy to setup the connection, following https://adamtheautomator.com/winrm-linux-remoting/ . However, that enables unencrypted communication on the Windows Host which is probably not a very good idea. |
Also looks like you can't stream the output back in realtime using pywinrm, although someone has tried to implement it diyan/pywinrm#55 (But it was never merged) - we could try picking up that patch ... |
https://github.com/Willsparker/pywinrm |
Using the above fork, I've been able to install the pywinrm module on a VM via:
To then send commands to a window VM, the following can be done:
The PR @sxa linked above allowed the
However, I have been able to successfully to start the build script using this method, with it printing live stdout:
|
Just realised that the unencrypted communication won't be an issue as the IP address of the Windows VM will only be available to the machine it's running on. |
|
Unfrotunately, installation wasn't as easy as previously thought - |
Currently, the scripts located in
pbTestScripts
used in the VagrantPlaybookCheck Jenkins job useansible all ...
as a way of starting the scripts to build / test a JDK. While this works, it doesn't output logs 'live'; It will only be output once the build / test has succeeded or failed, causing up to 2 hours of waiting, not knowing if the build / test is hung.A way to fix this this would be to start builds and tests outside of ansible, using
ssh
for linux/freebsd andpywinrm
for Windows.The text was updated successfully, but these errors were encountered: