Hi All,
I have been trying to get windows agents spun up in Amazon EC2 via Jenkins using the Amazon EC2 plugin.
The agents are getting launched fine, but, Jenkins is not able to connect to them at all.
No matter whatever settings I try, like, I have this in my userdata section:
<powershell>
$Script:ErrorActionPreference = [System.Management.Automation.ActionPreference]::Stop
mkdir 'C:\Jenkins'
Enable-PSRemoting -Force
winrm set winrm/config/service/Auth '@{Basic="true"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="1024"}'
Set-NetFirewallRule -Name 'WINRM-HTTP-In-TCP-PUBLIC' -RemoteAddress Any
New-NetFirewallRule -Name jenkins -DisplayName jenkins -Direction Inbound -Action Allow -Protocol TCP -LocalPort Any -Profile Any
Restart-Service WinRM
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine
</powershell>
This is based on all the suggestions that I could gather online, but, it doesnt work.
I keep getting:
Waiting for WinRM to come up. Sleeping 10s.
Connecting to (xx.xx.xx.xx) with WinRM as Administrator
Can anyone please help me with some suggestion on how to get this working?
I see that F Manfred Furuholen, Julien Duchesne, Matt Sicker are the maintainers of this plugin. Can you guys suggest something, please?
I have tried with even the latest version 1.45 of the plugin and my master is on version 2.176.3
Thanks
Alok