@DataBoundConstructor public EnvironmentScope(String value, String branchName, String envName) { switch (value) { case "build": this.isBuild = true; this.isDeploy = false; this.isAll = false; break; case "deploy": this.isDeploy = true; this.isBuild = false; this.isAll = false; break; default: this.isAll = true; this.isBuild = false; this.isDeploy = false; break; } this.branchName = branchName; this.envName = envName; }
/** * This annotation tells Hudson to call this constructor, with * values from the configuration form page with matching parameter names. */ @DataBoundConstructor public AwsBatchBuilder(String jobname, String jobdefinition, String command, String jobqueue, String vcpu, String memory, String retries){/*, HashMap<String, String> params, HashMap<String, String> environment) {*/ this.jobname = jobname; this.jobdefinition = jobdefinition; this.jobqueue = jobqueue; this.command = Arrays.asList(command.split("\\s+")); this.vcpu = parseIntOrNull(vcpu); this.memory = parseIntOrNull(memory); this.retries = parseIntOrNull(retries); this.params = null; this.environment = null; }
/** * When this builder is created in the project configuration step, the * builder object will be created from the strings below * * @param rxTestSuiteFilePath The name/location of the Ranorex Test Suite / * Ranorex Test Exe File * @param rxRunConfiguration The Ranorex Run configuration which will be * executed * @param rxReportDirectory The directory where the Ranorex Report should be * saved * @param rxReportFile The name of the Ranorex Report * @param rxReportExtension The extension of your Ranorex Report * @param rxJUnitReport If true, a JUnit compatible Report will be saved * @param rxZippedReport If true, the report will also be saved as RXZLOG * @param rxZippedReportDirectory The directory where the Ranorex Zipped * Report should be saved * @param rxZippedReportFile The name of the zipped Ranorex Report * @param rxGlobalParameter Global test suite parameters * @param cmdLineArgs Additional CMD line arguments */ @DataBoundConstructor public RanorexRunnerBuilder( String rxTestSuiteFilePath, String rxRunConfiguration, String rxReportDirectory, String rxReportFile, String rxReportExtension, Boolean rxJUnitReport, Boolean rxZippedReport, String rxZippedReportDirectory, String rxZippedReportFile, String rxGlobalParameter, String cmdLineArgs ) { this.rxTestSuiteFilePath = rxTestSuiteFilePath; this.rxRunConfiguration = rxRunConfiguration; this.rxReportDirectory = rxReportDirectory; this.rxReportFile = rxReportFile; this.rxReportExtension = rxReportExtension; this.rxJUnitReport = rxJUnitReport; this.rxZippedReport = rxZippedReport; this.rxZippedReportDirectory = rxZippedReportDirectory; this.rxZippedReportFile = rxZippedReportFile; this.rxGlobalParameter = rxGlobalParameter; this.cmdLineArgs = cmdLineArgs; }
/** * Constructor for stapler. * * @param strategyId the strategy id. * @param trust the authority to use. */ @DataBoundConstructor public ForkPullRequestDiscoveryTrait(int strategyId, @NonNull SCMHeadAuthority<? super GiteaSCMSourceRequest, ? extends ChangeRequestSCMHead2, ? extends SCMRevision> trust) { this.strategyId = strategyId; this.trust = trust; }
@DataBoundConstructor public OcWatch(String server, String project, boolean skipTLSVerify, String caPath, String verb, List advArgs, List verbArgs, List userArgs, List options, String token, int logLevel) { this.watchLoglevel = logLevel; this.cmdBuilder = new ClientCommandBuilder(server, project, skipTLSVerify, caPath, verb, advArgs, verbArgs, userArgs, options, token, logLevel); }
@DataBoundConstructor public Config(String siteName) { if (siteName == null) { Site[] sites = DESCRIPTOR.getSites(); if (sites.length > 0) { siteName = sites[0].getName(); } } this.siteName = siteName; }
@DataBoundConstructor public ASFMetadataSCMNavigatorTrait(String avatarUrl, String avatarDescription, String objectDisplayName, String objectDescription, String objectUrl) { this.avatarUrl = StringUtils.trimToNull(avatarUrl); this.avatarDescription = StringUtils.trimToNull(avatarDescription); this.objectDisplayName = StringUtils.trimToNull(objectDisplayName); this.objectDescription = StringUtils.trimToNull(objectDescription); this.objectUrl = StringUtils.trimToNull(objectUrl); }
@DataBoundConstructor public PublishSQStep(String SQHostURL, String SQAuthToken, String SQProjectKey) { this.SQHostURL = SQHostURL; this.SQAuthToken = SQAuthToken; this.SQProjectKey = SQProjectKey; }
@DataBoundConstructor public AwsBucketCredentialsImpl(@CheckForNull CredentialsScope scope, @CheckForNull String id, @CheckForNull String region, @CheckForNull String bucketName, @CheckForNull String bucketPath, @CheckForNull String username, @CheckForNull boolean s3Proxy, @CheckForNull String description, @CheckForNull String kmsEncryptionContextKey, @CheckForNull String kmsSecretName, @CheckForNull boolean kmsProxy, String proxyHost, String proxyPort) { super(scope, id, description); this.bucketName = bucketName; this.bucketPath = bucketPath; this.s3Proxy = s3Proxy; this.kmsEncryptionContextKey = kmsEncryptionContextKey; this.kmsSecretName = kmsSecretName; this.username = username; this.region=region; this.kmsProxy = kmsProxy; this.proxyHost = proxyHost; this.proxyPort = proxyPort; this.amazonS3ClientBuilder = new AwsS3ClientBuilder(); this.amazonS3ClientBuilder.region(region); if (s3Proxy) { this.amazonS3ClientBuilder.proxyHost(proxyHost).proxyPort(Integer.parseInt(proxyPort)); } this.amazonKmsClientBuilder = new AwsKmsClientBuilder(); this.amazonKmsClientBuilder.region(region); if (kmsProxy) { this.amazonKmsClientBuilder.proxyHost(proxyHost).proxyPort(Integer.parseInt(proxyPort)); } }
@DataBoundConstructor public EvaluateGate(String policyName, String orgName, String applicationName, String toolchainName, String environmentName, String buildJobName, String credentialsId, boolean willDisrupt, EnvironmentScope scope, OptionalBuildInfo additionalBuildInfo) { this.policyName = policyName; this.orgName = orgName; this.applicationName = applicationName; this.toolchainName = toolchainName; this.environmentName = environmentName; this.buildJobName = buildJobName; this.credentialsId = credentialsId; this.willDisrupt = willDisrupt; this.scope = scope; this.envName = scope.getEnvName(); this.isDeploy = scope.isDeploy(); if (additionalBuildInfo == null) { this.buildNumber = null; } else { this.buildNumber = additionalBuildInfo.buildNumber; } }
@DataBoundConstructor public StandardAwsCredentials(CredentialsScope scope, String id, String description, String displayName, String accessKey, String secretKey) { super(scope, id, description); this.displayName = displayName; this.accessKey = accessKey; this.secretKey = Secret.fromString(secretKey); }
@DataBoundConstructor public OTCNotifier(boolean onStarted, boolean onCompleted, boolean onFinalized, boolean failureOnly, boolean enableTraceability ){ this.onStarted = onStarted; this.onCompleted = onCompleted; this.onFinalized = onFinalized; this.failureOnly = failureOnly; this.enableTraceability = enableTraceability; }
@DataBoundConstructor public WebhookPublisher(String webhookURL, boolean sendOnStateChange, boolean enableUrlLinking, boolean enableArtifactList, boolean enableFooterInfo) { this.webhookURL = webhookURL; this.sendOnStateChange = sendOnStateChange; this.enableUrlLinking = enableUrlLinking; this.enableArtifactList = enableArtifactList; this.enableFooterInfo = enableFooterInfo; }
@DataBoundConstructor public AzureKeyVaultSecret(String _secretType, String _name, String _version, String _envVariable) { secretType = _secretType; envVariable = _envVariable; name = _name; version = _version; }
@DataBoundConstructor public QGPublisher(JobConfigData jobConfigData, GlobalConfigDataForSonarInstance globalConfigDataForSonarInstance) { this.jobConfigData = jobConfigData; this.buildDecision = new BuildDecision(globalConfigDataForSonarInstance); this.jobExecutionService = new JobExecutionService(); this.jobConfigurationService = new JobConfigurationService(); this.globalConfigDataForSonarInstance = null; }
/** * For use with {@link DataBoundConstructor}. * * @param credentialsId */ @DataBoundConstructor public AwsBucketCredentialsBinding(@Nullable String usernameVariable, @Nullable String passwordVariable, String credentialsId) { super(credentialsId); this.usernameVariable = StringUtils.defaultIfBlank(usernameVariable, DEFAULT_USERNAME_VARIABLE); this.passwordVariable = StringUtils.defaultIfBlank(passwordVariable, DEFAULT_PASSWORD_VARIABLE); }
@DataBoundConstructor public CodeSceneBuilder(String credentialsId, String deltaAnalysisUrl, String repository) { this.credentialsId = credentialsId; this.deltaAnalysisUrl = deltaAnalysisUrl; this.repository = repository; }
@DataBoundConstructor public EditComponentStep(final String id, final Object component) { this.id = id; this.component = component; }
@DataBoundConstructor public IssueCommentTrigger(@Nonnull final String commentPattern) { this.commentPattern = commentPattern; }
@DataBoundConstructor public Common() { }
@DataBoundConstructor public GetProjectsStep() { }
@DataBoundConstructor public BuildSlackNotifier(ArrayList<SlackURL> urls) { this.urls = urls; }
@DataBoundConstructor public ApproveStep(final String room, final String message) { this.room = room; this.message = message; }
/** * Constructor. * @param repoUrl the repository URL. */ @DataBoundConstructor public GiteaBrowser(String repoUrl) { super(GiteaServers.normalizeServerUrl(repoUrl)); }
@DataBoundConstructor public GetFieldsStep() { }
@DataBoundConstructor public EditIssueStep(final String idOrKey, final IssueInput issue) { this.idOrKey = idOrKey; this.issue = issue; }
@DataBoundConstructor public SSHCheckoutTrait(String credentialsId) { this.credentialsId = Util.fixEmpty(credentialsId); }
@DataBoundConstructor public GetCommentStep(final String idOrKey, final int commentId) { this.commentId = commentId; this.idOrKey = idOrKey; }
@DataBoundConstructor public SendStep(final String room, final String message) { this.room = room; this.message = message; }
@DataBoundConstructor public NotifyIssueStep(final String idOrKey, final Notify notify) { this.idOrKey = idOrKey; this.notify = notify; }
/** * Constructor. */ @DataBoundConstructor public TrustContributors() { }
@DataBoundConstructor public ChoiceEntry(String choice) { this.choice = choice; }
@DataBoundConstructor public TransitionIssueStep(final String idOrKey, final Object input) { this.idOrKey = idOrKey; this.input = input; }
@DataBoundConstructor public GitLabTagFilter() { /* NOOP */ }
@DataBoundConstructor public GetComponentStep(final String id) { this.id = id; }
@DataBoundConstructor public ClusterConfig(String name) { this.name = name; }
@DataBoundConstructor public NewComponentStep(final Component component) { this.component = component; }
@DataBoundConstructor public GetProjectStep(final String idOrKey) { this.idOrKey = idOrKey; }
@DataBoundConstructor public ResourceName(String name) { this.name = name; }