Package org.jenkinsci.plugins.fodupload
Class SharedUploadBuildStep
- java.lang.Object
-
- org.jenkinsci.plugins.fodupload.SharedUploadBuildStep
-
public class SharedUploadBuildStep extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLIENT_ID
static String
CLIENT_SECRET
static String
PERSONAL_ACCESS_TOKEN
static ThreadLocal<TaskListener>
taskListener
static String
TENANT_ID
static String
USERNAME
-
Constructor Summary
Constructors Constructor Description SharedUploadBuildStep(String releaseId, String bsiToken, boolean overrideGlobalConfig, String username, String personalAccessToken, String tenantId, boolean purchaseEntitlements, String entitlementPreference, String srcLocation, String remediationScanPreferenceType, String inProgressScanActionType, String inProgressBuildResultType, String selectedScanCentralBuildType, boolean scanCentralSkipBuild, String scanCentralBuildCommand, String scanCentralBuildFile, String scanCentralExcludeFiles, String scanCentralBuildToolVersion, String scanCentralVirtualEnv, String scanCentralRequirementFile, String assessmentType, String entitlementId, String frequencyId, String auditPreference, String technologyStack, String languageLevel, String openSourceScan, Boolean autoProvision, String applicationName, String applicationType, String releaseName, Integer owner, String attributes, String businessCriticality, String sdlcStatus, String microserviceName, Boolean isMicroservice)
SharedUploadBuildStep(String releaseId, String bsiToken, boolean overrideGlobalConfig, String username, String personalAccessToken, String tenantId, boolean purchaseEntitlements, String entitlementPreference, String srcLocation, String remediationScanPreferenceType, String inProgressScanActionType, String inProgressBuildResultType, String selectedReleaseType, String userSelectedApplication, String userSelectedMicroservice, String userSelectedRelease, String selectedScanCentralBuildType, boolean scanCentralSkipBuild, String scanCentralBuildCommand, String scanCentralBuildFile, String scanCentralExcludeFiles, String scanCentralBuildToolVersion, String scanCentralVirtualEnv, String scanCentralRequirementFile)
-
Method Summary
-
-
-
Field Detail
-
taskListener
public static final ThreadLocal<TaskListener> taskListener
-
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
-
-
Constructor Detail
-
SharedUploadBuildStep
public SharedUploadBuildStep(String releaseId, String bsiToken, boolean overrideGlobalConfig, String username, String personalAccessToken, String tenantId, boolean purchaseEntitlements, String entitlementPreference, String srcLocation, String remediationScanPreferenceType, String inProgressScanActionType, String inProgressBuildResultType, String selectedReleaseType, String userSelectedApplication, String userSelectedMicroservice, String userSelectedRelease, String selectedScanCentralBuildType, boolean scanCentralSkipBuild, String scanCentralBuildCommand, String scanCentralBuildFile, String scanCentralExcludeFiles, String scanCentralBuildToolVersion, String scanCentralVirtualEnv, String scanCentralRequirementFile)
-
SharedUploadBuildStep
public SharedUploadBuildStep(String releaseId, String bsiToken, boolean overrideGlobalConfig, String username, String personalAccessToken, String tenantId, boolean purchaseEntitlements, String entitlementPreference, String srcLocation, String remediationScanPreferenceType, String inProgressScanActionType, String inProgressBuildResultType, String selectedScanCentralBuildType, boolean scanCentralSkipBuild, String scanCentralBuildCommand, String scanCentralBuildFile, String scanCentralExcludeFiles, String scanCentralBuildToolVersion, String scanCentralVirtualEnv, String scanCentralRequirementFile, String assessmentType, String entitlementId, String frequencyId, String auditPreference, String technologyStack, String languageLevel, String openSourceScan, Boolean autoProvision, String applicationName, String applicationType, String releaseName, Integer owner, String attributes, String businessCriticality, String sdlcStatus, String microserviceName, Boolean isMicroservice)
-
-
Method Detail
-
doCheckReleaseId
public static FormValidation doCheckReleaseId(String releaseId, String bsiToken)
-
doCheckBsiToken
public static FormValidation doCheckBsiToken(String bsiToken, String releaseId)
-
doTestPersonalAccessTokenConnection
@POST public static FormValidation doTestPersonalAccessTokenConnection(String username, String personalAccessToken, String tenantId, @AncestorInPath Job job) throws FormValidation
- Throws:
FormValidation
-
doFillEntitlementPreferenceItems
public static ListBoxModel doFillEntitlementPreferenceItems()
-
doFillRemediationScanPreferenceTypeItems
public static ListBoxModel doFillRemediationScanPreferenceTypeItems()
-
doFillStringCredentialsItems
public static ListBoxModel doFillStringCredentialsItems(@AncestorInPath Job job)
-
doFillInProgressScanActionTypeItems
public static ListBoxModel doFillInProgressScanActionTypeItems()
-
doFillInProgressBuildResultTypeItems
public static ListBoxModel doFillInProgressBuildResultTypeItems()
-
doFillSelectedReleaseTypeItems
public static ListBoxModel doFillSelectedReleaseTypeItems()
-
doFillSelectedScanCentralBuildTypeItems
public static ListBoxModel doFillSelectedScanCentralBuildTypeItems()
-
customFillUserSelectedApplicationList
public static GenericListResponse<ApplicationApiResponse> customFillUserSelectedApplicationList(String searchTerm, int offset, int limit, AuthenticationModel authModel) throws IOException
- Throws:
IOException
-
customFillUserApplicationById
public static Result<ApplicationApiResponse> customFillUserApplicationById(int applicationId, AuthenticationModel authModel) throws IOException
- Throws:
IOException
-
customFillUserSelectedMicroserviceList
public static List<MicroserviceApiResponse> customFillUserSelectedMicroserviceList(int applicationId, AuthenticationModel authModel) throws IOException
- Throws:
IOException
-
customFillUserSelectedReleaseList
public static GenericListResponse<ReleaseApiResponse> customFillUserSelectedReleaseList(int applicationId, int microserviceId, String searchTerm, Integer offset, Integer limit, AuthenticationModel authModel) throws IOException
- Throws:
IOException
-
customFillUserReleaseById
public static Result<ReleaseApiResponse> customFillUserReleaseById(int releaseId, AuthenticationModel authModel) throws IOException
- Throws:
IOException
-
customFillEntitlementSettings
public static EntitlementSettings customFillEntitlementSettings(int releaseId, AuthenticationModel authModel) throws IOException
- Throws:
IOException
-
prebuild
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener)
-
perform
public void perform(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener, String correlationId)
-
getAuthModel
public AuthenticationModel getAuthModel()
-
getModel
public SastJobModel getModel()
-
getScanId
public int getScanId()
-
setScanId
public int setScanId(int newScanId)
-
-