Java 类org.kohsuke.stapler.DataBoundConstructor 实例源码

项目:ibm-cloud-devops    文件:EnvironmentScope.java   
@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;
}
项目:aws-batch    文件:AwsBatchBuilder.java   
/**
 * 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;
}
项目:Jenkins-Ranorex-Plugin    文件:RanorexRunnerBuilder.java   
/**
 * 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;
}
项目:gitea-plugin    文件:ForkPullRequestDiscoveryTrait.java   
/**
 * 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;
}
项目:jenkins-client-plugin    文件:OcWatch.java   
@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);
}
项目:jira-steps-plugin    文件:Config.java   
@DataBoundConstructor
public Config(String siteName) {
  if (siteName == null) {
    Site[] sites = DESCRIPTOR.getSites();
    if (sites.length > 0) {
      siteName = sites[0].getName();
    }
  }
  this.siteName = siteName;
}
项目:jira-steps    文件:Config.java   
@DataBoundConstructor
public Config(String siteName) {
    if (siteName == null) {
        Site[] sites = DESCRIPTOR.getSites();
        if (sites.length > 0) {
            siteName = sites[0].getName();
        }
    }
    this.siteName = siteName;
}
项目:asf-gitpubsub-jenkins-plugin    文件:ASFMetadataSCMNavigatorTrait.java   
@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);
}
项目:ibm-cloud-devops    文件:PublishSQStep.java   
@DataBoundConstructor
public PublishSQStep(String SQHostURL, String SQAuthToken, String SQProjectKey) {

    this.SQHostURL = SQHostURL;
    this.SQAuthToken = SQAuthToken;
    this.SQProjectKey = SQProjectKey;
}
项目:jenkins-aws-bucket-credentials    文件:AwsBucketCredentialsImpl.java   
@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));
    }
}
项目:ibm-cloud-devops    文件:EvaluateGate.java   
@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;
    }
}
项目:aws-codecommit-trigger-plugin    文件:StandardAwsCredentials.java   
@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);
}
项目:ibm-cloud-devops    文件:OTCNotifier.java   
@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;
}
项目:jenkins-discord    文件:WebhookPublisher.java   
@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;
}
项目:azure-keyvault-plugin    文件:AzureKeyVaultSecret.java   
@DataBoundConstructor
public AzureKeyVaultSecret(String _secretType, String _name,
    String _version, String _envVariable) {
    secretType = _secretType;
    envVariable = _envVariable;
    name = _name;
    version = _version;
}
项目:sonar-quality-gates-plugin    文件:QGPublisher.java   
@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;
}
项目:jenkins-aws-bucket-credentials    文件:AwsBucketCredentialsBinding.java   
/**
 * 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);
}
项目:codescene-jenkins-plugin    文件:CodeSceneBuilder.java   
@DataBoundConstructor
public CodeSceneBuilder(String credentialsId, String deltaAnalysisUrl, String repository) {
    this.credentialsId = credentialsId;
    this.deltaAnalysisUrl = deltaAnalysisUrl;
    this.repository = repository;
}
项目:jira-steps-plugin    文件:EditComponentStep.java   
@DataBoundConstructor
public EditComponentStep(final String id, final Object component) {
  this.id = id;
  this.component = component;
}
项目:pipeline-github    文件:IssueCommentTrigger.java   
@DataBoundConstructor
public IssueCommentTrigger(@Nonnull final String commentPattern) {
    this.commentPattern = commentPattern;
}
项目:microcks-jenkins-plugin    文件:Common.java   
@DataBoundConstructor
public Common() {
}
项目:jira-steps    文件:GetProjectsStep.java   
@DataBoundConstructor
public GetProjectsStep() {
}
项目:BuildSlackNotifier    文件:BuildSlackNotifier.java   
@DataBoundConstructor
public BuildSlackNotifier(ArrayList<SlackURL> urls) {
  this.urls = urls;
}
项目:hubot-steps-plugin    文件:ApproveStep.java   
@DataBoundConstructor
public ApproveStep(final String room, final String message) {
  this.room = room;
  this.message = message;
}
项目:gitea-plugin    文件:GiteaBrowser.java   
/**
 * Constructor.
 * @param repoUrl the repository URL.
 */
@DataBoundConstructor
public GiteaBrowser(String repoUrl) {
    super(GiteaServers.normalizeServerUrl(repoUrl));
}
项目:jira-steps-plugin    文件:GetFieldsStep.java   
@DataBoundConstructor
public GetFieldsStep() {
}
项目:jira-steps    文件:EditIssueStep.java   
@DataBoundConstructor
public EditIssueStep(final String idOrKey, final IssueInput issue) {
    this.idOrKey = idOrKey;
    this.issue = issue;
}
项目:gitea-plugin    文件:SSHCheckoutTrait.java   
@DataBoundConstructor
public SSHCheckoutTrait(String credentialsId) {
    this.credentialsId = Util.fixEmpty(credentialsId);
}
项目:jira-steps    文件:GetCommentStep.java   
@DataBoundConstructor
public GetCommentStep(final String idOrKey, final int commentId) {
    this.commentId = commentId;
    this.idOrKey = idOrKey;
}
项目:hubot-steps-plugin    文件:SendStep.java   
@DataBoundConstructor
public SendStep(final String room, final String message) {
  this.room = room;
  this.message = message;
}
项目:jira-steps    文件:NotifyIssueStep.java   
@DataBoundConstructor
public NotifyIssueStep(final String idOrKey, final Notify notify) {
    this.idOrKey = idOrKey;
    this.notify = notify;
}
项目:gitea-plugin    文件:ForkPullRequestDiscoveryTrait.java   
/**
 * Constructor.
 */
@DataBoundConstructor
public TrustContributors() {
}
项目:Jenkins-Plugin-Examples    文件:HeteroList.java   
@DataBoundConstructor public ChoiceEntry(String choice) {
    this.choice = choice;
}
项目:jira-steps-plugin    文件:TransitionIssueStep.java   
@DataBoundConstructor
public TransitionIssueStep(final String idOrKey, final Object input) {
  this.idOrKey = idOrKey;
  this.input = input;
}
项目:gitlab-branch-source-plugin    文件:GitLabTagFilter.java   
@DataBoundConstructor
public GitLabTagFilter() { /* NOOP */ }
项目:jira-steps-plugin    文件:GetComponentStep.java   
@DataBoundConstructor
public GetComponentStep(final String id) {
  this.id = id;
}
项目:jenkins-client-plugin    文件:ClusterConfig.java   
@DataBoundConstructor
public ClusterConfig(String name) {
    this.name = name;
}
项目:jira-steps    文件:NewComponentStep.java   
@DataBoundConstructor
public NewComponentStep(final Component component) {
    this.component = component;
}
项目:jira-steps-plugin    文件:GetProjectStep.java   
@DataBoundConstructor
public GetProjectStep(final String idOrKey) {
  this.idOrKey = idOrKey;
}
项目:jenkins-client-plugin    文件:ResourceName.java   
@DataBoundConstructor
public ResourceName(String name) {
    this.name = name;
}