Class CodeScanBuildStep.BuildStepDescriptorImpl

    • Constructor Detail

      • BuildStepDescriptorImpl

        public BuildStepDescriptorImpl()
        In order to load the persisted global configuration, you have to call load() in the constructor.
    • Method Detail

      • getAssetViolationsDescriptors

        public Collection<? extends Descriptor<?>> getAssetViolationsDescriptors()
      • getDefaultScanTimeOut

        public Integer getDefaultScanTimeOut()
        Invoked by Jenkins UX to fetch default value for this.scanTimeOut
      • setCredentialPairs

        @DataBoundSetter
        public void setCredentialPairs​(List<CredentialPair> credentialPairs)
      • doCheckOrgID

        @POST
        public FormValidation doCheckOrgID​(@QueryParameter
                                           String orgID,
                                           @AncestorInPath
                                           Item item)
        Validates OrgID is non-empty and contains numeric characters only.
        Parameters:
        orgID - GCP organizationId.
        Returns:
        FormValidation
      • doCheckScanFileName

        @POST
        public FormValidation doCheckScanFileName​(@QueryParameter
                                                  String scanFileName,
                                                  @AncestorInPath
                                                  Item item)
        Validates scanFileName is not empty.

        POST annotation : Added to enable CSRF protection while form validation : CSRF Protection

        Parameters:
        scanFileName - scan file name.
        item - basic configuration unit in Hudson.
        Returns:
        FormValidation
      • doCheckScanTimeOut

        @POST
        public FormValidation doCheckScanTimeOut​(@QueryParameter
                                                 Integer scanTimeOut,
                                                 @AncestorInPath
                                                 Item item)
        Validates scanTimeOut is within expected range.
        Parameters:
        scanTimeOut - timeout in milliseconds after which scan is aborted.
        item - basic configuration unit in Hudson.
        Returns:
        String
      • violationHelp

        public String violationHelp()
        Description message for IgnoreAssetViolation configuration on Jenkins UX.