Class BuildResultNavigator


  • public class BuildResultNavigator
    extends Object
    Navigates from the current results to the same results of any other build of the same job.
    Author:
    Ullrich Hafner
    • Constructor Detail

      • BuildResultNavigator

        public BuildResultNavigator()
    • Method Detail

      • getSameUrlForOtherBuild

        public Optional<String> getSameUrlForOtherBuild​(Run<?,​?> currentBuild,
                                                        String currentAbsoluteBrowserUrl,
                                                        String resultId,
                                                        String selectedBuildDisplayName)
        Navigates from the current results to the same results of any other build of the same job.
        Parameters:
        currentBuild - the current build that owns the view results
        currentAbsoluteBrowserUrl - the absolute URL to the view results
        resultId - the ID of the static analysis results
        selectedBuildDisplayName - the selected build to open the new results for
        Returns:
        the URL to the results if possible
      • getSameUrlForOtherBuild

        public Optional<String> getSameUrlForOtherBuild​(Run<?,​?> currentBuild,
                                                        String viewUrl,
                                                        String resultId,
                                                        Run<?,​?> selectedBuild)
        Navigates from the current results to the same results of any other build of the same job.
        Parameters:
        currentBuild - the current build that owns the view results
        viewUrl - the absolute URL to the view results
        resultId - the ID of the static analysis results
        selectedBuild - the selected build to open the new results for
        Returns:
        the URL to the results if possible