Hello,

I have recently adopted the EC2 Fleet plugin and have discovered a bug in 
the plugin which I would like to see if anyone else has encountered before 
and might have a solution.

The plugin provides the ability to configure 2 different Cloud types, and 
part of the configuration for the cloud includes Launcher configuration, 
which may include a credential field when configuring to use an SSH 
launcher. The issue is that when creating a new Cloud, the Add button to 
add a new credential does not work and I can see in the browser console an 
error from a web request to 
https://{jenkins-url}/manage/cloud/[object%20PointerEvent]. If you edit an 
existing Cloud, then the button works as expected and you can create a 
credential.

The field for the launcher configuration on the form is defined at 
https://github.com/jenkinsci/ec2-fleet-plugin/blob/master/src/main/resources/com/amazon/jenkins/ec2fleet/EC2FleetCloud/config.jelly#L52-L54

I've seen that other plugins that add Clouds like those provided by the EC2 
plugin don't expose the ability to control the launcher configuration and 
just have a field specific for the SSH credentials and so don't have a 
dynamic form that can change based on launcher type, but I'd like to avoid 
refactoring to that pattern as a breaking change if there was another 
solution available.

Thank you,
Brady Shober

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/jenkinsci-dev/944db7bb-2deb-4f1b-9c69-48e8611a933bn%40googlegroups.com.

Reply via email to