Class VeracodeNotifier.VeracodeDescriptor

  • All Implemented Interfaces:
    Saveable, OnMaster
    Enclosing class:
    VeracodeNotifier

    @Extension
    public static final class VeracodeNotifier.VeracodeDescriptor
    extends BuildStepDescriptor<Publisher>
    Contains the code that is executed after a user submits the "Configure System" form and provides getter methods for the form fields defined in global.jelly. This class extends the BuildStepDescriptor class. Converting this class to a top-level class should be done with the understanding that doing so might prevent the plugin from working properly if not at all.
    • Constructor Detail

      • VeracodeDescriptor

        public VeracodeDescriptor()
        This constructor makes it possible for global configuration data to be re-loaded after Jenkins is restarted.
    • Method Detail

      • getGvid

        public String getGvid()
      • getGvkey

        public String getGvkey()
      • getFailbuild

        public boolean getFailbuild()
      • isUnstablebuild

        public boolean isUnstablebuild()
      • getCopyremotefiles

        public boolean getCopyremotefiles()
      • getAutoappname

        public boolean getAutoappname()
      • getAutodescription

        public boolean getAutodescription()
      • getAutoversion

        public boolean getAutoversion()
      • getDebug

        public boolean getDebug()
      • getProxy

        public boolean getProxy()
      • getPhost

        public String getPhost()
      • getPport

        public String getPport()
      • getPuser

        public String getPuser()
      • getPpassword

        public String getPpassword()
      • doTestConnection

        public FormValidation doTestConnection​(@QueryParameter("gvid")
                                               String gv_id,
                                               @QueryParameter("gvkey")
                                               String gv_key,
                                               @QueryParameter("proxy")
                                               boolean _proxy,
                                               @QueryParameter("phost")
                                               String p_host,
                                               @QueryParameter("pport")
                                               String p_port,
                                               @QueryParameter("puser")
                                               String p_user,
                                               @QueryParameter("ppassword")
                                               String p_password)
      • doCheckFilenamepattern

        public FormValidation doCheckFilenamepattern​(@QueryParameter("filenamepattern")
                                                     String filename_pattern,
                                                     @QueryParameter("replacementpattern")
                                                     String replacement_pattern)
                                              throws IOException,
                                                     javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • doCheckReplacementpattern

        public FormValidation doCheckReplacementpattern​(@QueryParameter("filenamepattern")
                                                        String filename_pattern,
                                                        @QueryParameter("replacementpattern")
                                                        String replacement_pattern)
                                                 throws IOException,
                                                        javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • doCheckTimeout

        public FormValidation doCheckTimeout​(@QueryParameter("timeout")
                                             String timeout)
      • doFillCriticalityItems

        public ListBoxModel doFillCriticalityItems​(@QueryParameter("criticality")
                                                   String criticality)
      • doFillDeleteIncompleteScanItems

        public ListBoxModel doFillDeleteIncompleteScanItems​(@QueryParameter("deleteIncompleteScan")
                                                            String deleteIncompleteScan)
      • hasGlobalCredentials

        public boolean hasGlobalCredentials()
        Whether Veracode credentials were supplied in the "Configure System" page.

        This method is public because it is also called from config.jelly.

        Returns:
        boolean
      • hasValidCredentials

        public boolean hasValidCredentials​(String id,
                                           String key)
        Checks to see if the id and key fields are empty despite having valid information in the global settings page
        Parameters:
        id - String
        key - String
        Returns:
        boolean
      • getPostBuildActionDisplayText

        public static String getPostBuildActionDisplayText()