jenkinsci / jenkinsci/ec2-plugin

[JENKINS-57513] Split the large databound constructors into databound setters

Open
#1,672 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component:ec2-plugin imported-jira-issue jcasc-compatibility jira-type:task priority:minor resolution:unresolved
Dominant language
Java
Stars
292
Forks
709
Avg merge
3d 16h
Merged PRs (30d)
4

Description

Inside EC2 plugin there is a lot of constructors with a large set of databound constructors.

Databound constructor should only be used for mandatory/final parameters

Where databound setters should be used for optional parameters.

https://jenkins.io/doc/developer/plugin-development/pipeline-integration/#constructor-vs-setters

---
Originally reported by casz, imported from: Split the large databound constructors into databound setters


  • assignee: thoulen
  • status: Open
  • priority: Minor
  • component(s): ec2-plugin
  • label(s): jcasc-compatibility
  • resolution: Unresolved
  • votes: 1
  • watchers: 8
  • imported: 2025-12-06

Raw content of original issue

Inside EC2 plugin there is a lot of constructors with a large set of databound constructors.
Databound constructor should only be used for mandatory/final parameters

Where databound setters should be used for optional parameters.

https://jenkins.io/doc/developer/plugin-development/pipeline-integration/#constructor-vs-setters

1 attachment

- [ec2-slave-template-2020-03-16 092547.png](https://issues.jenkins.io/secure/attachment/50685/ec2-slave-template-2020-03-16%20092547.png)
> ![ec2-slave-template-2020-03-16 092547.png](https://issues.jenkins.io/secure/attachment/50685/ec2-slave-template-2020-03-16%20092547.png)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the EC2 plugin classes with large databound constructors and review the linked Jenkins constructor-versus-setters guidance first. The work is done when optional parameters use databound setters while mandatory or final parameters remain in constructors, with existing behavior preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java
Domain
backend, cloud
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.