Dynamic Form Handling

27 views
Skip to first unread message

Brady Shober

unread,
Sep 9, 2025, 1:22:02 PM (9 days ago) Sep 9
to Jenkins Developers
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

Jesse Glick

unread,
Sep 9, 2025, 4:35:10 PM (9 days ago) Sep 9
to jenkin...@googlegroups.com

Jesse Glick

unread,
Sep 10, 2025, 8:24:10 PM (8 days ago) Sep 10
to jenkin...@googlegroups.com

Brady Shober

unread,
Sep 10, 2025, 9:34:35 PM (8 days ago) Sep 10
to jenkin...@googlegroups.com
Ah thanks, I will watch that PR and check to verify that it is working once it is merged and a new version is released.

On Wed, Sep 10, 2025, 7:24 PM 'Jesse Glick' via Jenkins Developers <jenkin...@googlegroups.com> wrote:
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/MamDFUaYPMQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0BOheZs8LEE9UbE8aZy2RaG01Bf8exeCbUKFZr4Gv8dw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages