Class RebuildAction

    • Constructor Detail

      • RebuildAction

        public RebuildAction​(Run<?,​?> run)
        RebuildAction constructor.
    • Method Detail

      • isRememberPasswordEnabled

        public boolean isRememberPasswordEnabled()
        True if the password fields should be pre-filled.
        Returns:
        True if the password fields should be pre-filled.
      • doIndex

        public void doIndex​(org.kohsuke.stapler.StaplerRequest request,
                            org.kohsuke.stapler.StaplerResponse response)
                     throws IOException
        Handles the rebuild request and redirects to parameterized and non parameterized build when needed.
        Parameters:
        request - StaplerRequest the request.
        response - StaplerResponse the response handler.
        Throws:
        IOException - in case of Stapler issues
      • parameterizedRebuild

        public void parameterizedRebuild​(Run currentBuild,
                                         org.kohsuke.stapler.StaplerResponse response)
                                  throws IOException
        Handles the rebuild request with parameter.
        Parameters:
        currentBuild - the build.
        response - StaplerResponse the response handler.
        Throws:
        IOException - in case of Stapler issues
      • nonParameterizedRebuild

        public void nonParameterizedRebuild​(Run currentBuild,
                                            org.kohsuke.stapler.StaplerResponse response)
                                     throws IOException
        Call this method while rebuilding non parameterized build. .
        Parameters:
        currentBuild - current build.
        response - current response object.
        Throws:
        IOException - if something unfortunate happens.
      • doConfigSubmit

        public void doConfigSubmit​(org.kohsuke.stapler.StaplerRequest req,
                                   org.kohsuke.stapler.StaplerResponse rsp)
                            throws javax.servlet.ServletException,
                                   IOException
        Saves the form to the configuration and disk.
        Parameters:
        req - StaplerRequest
        rsp - StaplerResponse
        Throws:
        javax.servlet.ServletException - if something unfortunate happens.
        IOException - if something unfortunate happens.
      • getParameterValue

        public ParameterValue getParameterValue​(ParametersDefinitionProperty paramDefProp,
                                                String parameterName,
                                                ParametersAction paramAction,
                                                org.kohsuke.stapler.StaplerRequest req,
                                                net.sf.json.JSONObject jo)
        Method for getting the ParameterValue instance from ParameterDefinition or ParamterAction.
        Parameters:
        paramDefProp - ParametersDefinitionProperty
        parameterName - Name of the Parameter.
        paramAction - ParametersAction
        req - StaplerRequest
        jo - JSONObject
        Returns:
        ParameterValue instance of subclass of ParameterValue
      • getRebuildParameterPage

        public RebuildParameterPage getRebuildParameterPage​(ParameterValue value)
        Parameters:
        value - the parameter value to show to rebuild.
        Returns:
        page for the parameter value, or null if no suitable option found.
      • onLoad

        public void onLoad​(Run<?,​?> r)
        Specified by:
        onLoad in interface RunAction2