Amazon EC2 plugin issues with Windows agents

12 views
Skip to first unread message

alok kumar

unread,
Sep 19, 2019, 5:20:59 PM9/19/19
to jenkins...@googlegroups.com, jenkin...@googlegroups.com
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

Matt Sicker

unread,
Sep 20, 2019, 10:51:08 AM9/20/19
to jenkin...@googlegroups.com, jenkins...@googlegroups.com
You can try getting answers in the gitter chat:
https://gitter.im/ec2-plugin/Lobby
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAOqqq4SEQ1x1Y%2B5mRH0TCwzgqffJzj9FthSf55fJ3iU_357jmA%40mail.gmail.com.



--
Matt Sicker
Senior Software Engineer, CloudBees

alok kumar

unread,
Sep 20, 2019, 11:21:11 AM9/20/19
to jenkin...@googlegroups.com, jenkins...@googlegroups.com
Hi Matt,
Thanks a lot for your response. I have just put my question there.
Hope to get some help.

Thanks
Alok

Reply all
Reply to author
Forward
0 new messages