diff --git a/core/src/main/java/jenkins/model/IdStrategy.java b/core/src/main/java/jenkins/model/IdStrategy.java index 7d915263f3266673c684e63775a17c2fc284cc9b..1e4e462db28a8ffe5a08a3f76b3ddbd5fb63ab0a 100644 --- a/core/src/main/java/jenkins/model/IdStrategy.java +++ b/core/src/main/java/jenkins/model/IdStrategy.java @@ -29,6 +29,7 @@ import hudson.ExtensionPoint; import hudson.model.AbstractDescribableImpl; import hudson.util.CaseInsensitiveComparator; import org.apache.commons.lang.StringUtils; +import org.kohsuke.stapler.DataBoundConstructor; import javax.annotation.Nonnull; import java.util.Comparator; @@ -138,6 +139,9 @@ public abstract class IdStrategy extends AbstractDescribableImpl imp */ public static class CaseInsensitive extends IdStrategy { + @DataBoundConstructor + public CaseInsensitive() {} + @Override @Nonnull public String filenameOf(@Nonnull String id) { @@ -178,6 +182,9 @@ public abstract class IdStrategy extends AbstractDescribableImpl imp */ public static class CaseSensitive extends IdStrategy { + @DataBoundConstructor + public CaseSensitive() {} + /** * {@inheritDoc} */ @@ -255,6 +262,9 @@ public abstract class IdStrategy extends AbstractDescribableImpl imp */ public static class CaseSensitiveEmailAddress extends CaseSensitive { + @DataBoundConstructor + public CaseSensitiveEmailAddress() {} + /** * {@inheritDoc} */