@DataBoundConstructor public Entry(String key, String value) { this.key = key; this.value = value; } }
@DataBoundConstructor public StringParameterDefinition(String name, String defaultValue, String description, boolean trim) { super(name, description); this.defaultValue = defaultValue; this.trim = trim; }
@DataBoundConstructor public JobParameterValue(String name, Job job) { super(name); this.job = job; }
@DataBoundConstructor public ServerTcpPort(int value, String type) { this.value = value; this.type = type; }
/** * @since 1.517 */ @DataBoundConstructor public RunParameterDefinition(String name, String projectName, String description, RunParameterFilter filter) { super(name, description); this.projectName = projectName; this.runId = null; this.filter = filter; }
/** * Constructs a new Always. */ @DataBoundConstructor public Always() { }
@DataBoundConstructor public ToolLocationNodeProperty(List<ToolLocation> locations) { if (locations == null) { locations = new ArrayList<ToolLocation>(); } this.locations = locations; }
@DataBoundConstructor public DefaultCrumbIssuer(boolean excludeClientIPFromCrumb) { try { this.md = MessageDigest.getInstance("MD5"); this.excludeClientIPFromCrumb = excludeClientIPFromCrumb; } catch (NoSuchAlgorithmException e) { this.md = null; this.excludeClientIPFromCrumb = false; LOGGER.log(Level.SEVERE, "Can't find MD5", e); } }
@DataBoundConstructor public Demand(long inDemandDelay, long idleDelay) { this.inDemandDelay = Math.max(0, inDemandDelay); this.idleDelay = Math.max(1, idleDelay); }
@DataBoundConstructor public ToolLocation(String key, String home) { this.type = key.substring(0, key.indexOf('@')); this.name = key.substring(key.indexOf('@') + 1); this.home = home; }
@DataBoundConstructor public MyViewsProperty(@CheckForNull String primaryViewName) { this.primaryViewName = primaryViewName; readResolve(); // initialize fields }
@DataBoundConstructor public PasswordParameterValue(String name, String value, String description) { super(name, description); this.value = Secret.fromString(value); }
@DataBoundConstructor public PasswordParameterDefinition(String name, String defaultValue, String description) { super(name, description); this.defaultValue = Secret.fromString(defaultValue); }
@DataBoundConstructor public RunParameterValue(String name, String runId, String description) { super(name, description); this.runId = check(runId); }
@DataBoundConstructor public SimpleScheduledRetentionStrategy(String startTimeSpec, int upTimeMins, boolean keepUpWhenActive) throws ANTLRException { this.startTimeSpec = startTimeSpec; this.keepUpWhenActive = keepUpWhenActive; this.tabs = CronTabList.create(startTimeSpec); this.lastChecked = new GregorianCalendar(); this.upTimeMins = Math.max(1, upTimeMins); this.lastChecked.add(Calendar.MINUTE, -1); }
@DataBoundConstructor public JNLPLauncher(@CheckForNull String tunnel, @CheckForNull String vmargs) { this.tunnel = Util.fixEmptyAndTrim(tunnel); this.vmargs = Util.fixEmptyAndTrim(vmargs); }
@DataBoundConstructor public ProxyView(String name) { super(name); if (Jenkins.getInstance().getView(name) != null) { // if this is a valid global view name, let's assume the // user wants to show it proxiedViewName = name; } }
@DataBoundConstructor public ListView(String name) { super(name); initColumns(); initJobFilters(); }
@DataBoundConstructor public LogRotator (String daysToKeepStr, String numToKeepStr, String artifactDaysToKeepStr, String artifactNumToKeepStr) { this (parse(daysToKeepStr),parse(numToKeepStr), parse(artifactDaysToKeepStr),parse(artifactNumToKeepStr)); }
@DataBoundConstructor public ProxyConfiguration(String name, int port, String userName, String password, String noProxyHost, String testUrl) { this.name = Util.fixEmptyAndTrim(name); this.port = port; this.userName = Util.fixEmptyAndTrim(userName); this.secretPassword = Secret.fromString(password); this.noProxyHost = Util.fixEmptyAndTrim(noProxyHost); this.testUrl = Util.fixEmptyAndTrim(testUrl); this.authenticator = newAuthenticator(); }