Package org.jenkinsci.plugins.fodupload
Class SharedPollingBuildStep
- java.lang.Object
-
- org.jenkinsci.plugins.fodupload.SharedPollingBuildStep
-
public class SharedPollingBuildStep extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SharedPollingBuildStep.PolicyFailureBuildResultPreference
-
Field Summary
Fields Modifier and Type Field Description static String
CLIENT_ID
static String
CLIENT_SECRET
static String
PERSONAL_ACCESS_TOKEN
static String
TENANT_ID
static BsiTokenParser
tokenParser
static String
USERNAME
-
Constructor Summary
Constructors Constructor Description SharedPollingBuildStep(String releaseId, String bsiToken, boolean overrideGlobalConfig, int pollingInterval, int policyFailureBuildResultPreference, String clientId, String clientSecret, String username, String personalAccessToken, String tenantId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FormValidation
doCheckBsiToken(String bsiToken, String releaseId)
static FormValidation
doCheckPollingInterval(String pollingInterval)
static FormValidation
doCheckReleaseId(String releaseId, String bsiToken)
static ListBoxModel
doFillPolicyFailureBuildResultPreferenceItems()
static ListBoxModel
doFillStringCredentialsItems(Job job)
static FormValidation
doTestPersonalAccessTokenConnection(String username, String personalAccessToken, String tenantId, Job job)
AuthenticationModel
getAuthModel()
String
getBsiToken()
int
getPolicyFailureBuildResultPreference()
int
getPollingInterval()
String
getReleaseId()
int
getUploadScanId()
void
perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener taskListener)
void
setCorrelationId(String correlationId)
void
setUploadScanId(int uploadScanId)
-
-
-
Field Detail
-
tokenParser
public static final BsiTokenParser tokenParser
-
CLIENT_ID
public static final String CLIENT_ID
- See Also:
- Constant Field Values
-
CLIENT_SECRET
public static final String CLIENT_SECRET
- See Also:
- Constant Field Values
-
USERNAME
public static final String USERNAME
- See Also:
- Constant Field Values
-
PERSONAL_ACCESS_TOKEN
public static final String PERSONAL_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
TENANT_ID
public static final String TENANT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
doCheckReleaseId
public static FormValidation doCheckReleaseId(String releaseId, String bsiToken)
-
doCheckBsiToken
public static FormValidation doCheckBsiToken(String bsiToken, String releaseId)
-
doCheckPollingInterval
public static FormValidation doCheckPollingInterval(String pollingInterval)
-
doTestPersonalAccessTokenConnection
@POST public static FormValidation doTestPersonalAccessTokenConnection(String username, String personalAccessToken, String tenantId, @AncestorInPath Job job) throws FormValidation
- Throws:
FormValidation
-
doFillPolicyFailureBuildResultPreferenceItems
public static ListBoxModel doFillPolicyFailureBuildResultPreferenceItems()
-
doFillStringCredentialsItems
public static ListBoxModel doFillStringCredentialsItems(@AncestorInPath Job job)
-
perform
public void perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener taskListener) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
getReleaseId
public String getReleaseId()
-
getBsiToken
public String getBsiToken()
-
getPollingInterval
public int getPollingInterval()
-
getPolicyFailureBuildResultPreference
public int getPolicyFailureBuildResultPreference()
-
getUploadScanId
public int getUploadScanId()
-
setUploadScanId
public void setUploadScanId(int uploadScanId)
-
setCorrelationId
public void setCorrelationId(String correlationId)
-
getAuthModel
public AuthenticationModel getAuthModel()
-
-