Package io.jenkins.plugins.reporter.util
Class BuildResultNavigator
- java.lang.Object
-
- io.jenkins.plugins.reporter.util.BuildResultNavigator
-
public class BuildResultNavigator extends Object
Navigates from the current results to the same results of any other build of the same job.- Author:
- Simon Symhoven
-
-
Constructor Summary
Constructors Constructor Description BuildResultNavigator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
escapeMatch(String str)
Optional<String>
getSameUrlForOtherBuild(Run<?,?> currentBuild, String viewUrl, String resultId, int selectedBuildNumber)
Navigates from the current results to the same results of any other build of the same job.Optional<String>
getSameUrlForOtherBuild(Run<?,?> currentBuild, String viewUrl, String resultId, String selectedBuildNumber)
Navigates from the current results to the same results of any other build of the same job.
-
-
-
Method Detail
-
getSameUrlForOtherBuild
public Optional<String> getSameUrlForOtherBuild(Run<?,?> currentBuild, String viewUrl, String resultId, String selectedBuildNumber)
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 resultsviewUrl
- the absolute URL to the view resultsresultId
- the ID of the static analysis resultsselectedBuildNumber
- 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, int selectedBuildNumber)
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 resultsviewUrl
- the absolute URL to the view resultsresultId
- the ID of the static analysis resultsselectedBuildNumber
- the selected build to open the new results for- Returns:
- the URL to the results if possible
-
-