Class AxivionSuite.AxivionSuiteToolDescriptor

    • Constructor Detail

      • AxivionSuiteToolDescriptor

        public AxivionSuiteToolDescriptor()
        Creates the descriptor instance.
    • Method Detail

      • getHelp

        public String getHelp()
        Description copied from class: Tool.ToolDescriptor
        Returns an optional help text that can provide useful hints on how to configure the static analysis tool so that the report files could be parsed by Jenkins. This help can be a plain text message or an HTML snippet.
        Overrides:
        getHelp in class Tool.ToolDescriptor
        Returns:
        the help
      • doCheckProjectUrl

        @POST
        public FormValidation doCheckProjectUrl​(@AncestorInPath
                                                AbstractProject<?,​?> project,
                                                @QueryParameter
                                                String projectUrl)
        Dashboard project url must be a valid url.
        Parameters:
        project - the project that is configured
        projectUrl - url to a project inside an Axivion dashboard
        Returns:
        FormValidation.ok() is a valid url
      • doCheckBasedir

        @POST
        public FormValidation doCheckBasedir​(@AncestorInPath
                                             AbstractProject<?,​?> project,
                                             @QueryParameter
                                             String basedir)
        Checks whether the given path is a correct os path.
        Parameters:
        project - the project that is configured
        basedir - path to check
        Returns:
        FormValidation.ok() is a valid url
      • doCheckCredentialsId

        @POST
        public FormValidation doCheckCredentialsId​(@AncestorInPath
                                                   Item item,
                                                   @QueryParameter
                                                   String credentialsId)
        Checks whether valid credentials are given.
        Parameters:
        item - jenkins configuration
        credentialsId - id of the stored credentials pair
        Returns:
        FormValidation.ok() if credentials exist and are valid
      • doFillCredentialsIdItems

        @POST
        public ListBoxModel doFillCredentialsIdItems​(@AncestorInPath
                                                     Item item,
                                                     @QueryParameter
                                                     String credentialsId)
        Shows the user all available credential id items.
        Parameters:
        item - jenkins configuration
        credentialsId - current used credentials
        Returns:
        a list view of all credential ids