Package jetbrains.buildServer.serverSide
Class RelativeWebLinks
- java.lang.Object
-
- jetbrains.buildServer.serverSide.RelativeWebLinks
-
-
Field Summary
Fields Modifier and Type Field Description static String
BUILD_TAB_CHANGES
static String
BUILD_TAB_PARAMETERS
-
Constructor Summary
Constructors Constructor Description RelativeWebLinks()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
addParameterQuestionmark(String input)
static String
formatBuildTab(String buildTab)
String
getAgentUrl(BuildAgent agent, Integer agentTypeId)
String
getBuildDependenciesForQueuedBuildUrl(QueuedBuild queuedBuild)
String
getBuildDependenciesUrl(Build build)
String
getBuildParametersUrl(Build build)
String
getBuildUrl(QueuedBuild queuedBuild)
URL of the specified build.String
getChangeFilesUrl(long modificationId, boolean isPersonal)
Returns the URL of change details page (files tab)String
getChangeUrl(long modificationId, boolean isPersonal)
String
getCloudImageUrl(Integer agentTypeId)
Return url of the cloud image using given agentTypeId.String
getConfigurationHomePageUrl(BuildType buildType)
String
getCreateConfigurationPageUrl(String projectExtId)
String
getCreateProjectPageUrl(String parentExtId)
String
getDownloadAllArtefactsUrl(Build build)
String
getDownloadArtefactUrl(String buildTypeExternalId, long buildId, String path)
String
getDownloadArtefactUrl(String buildTypeExternalId, String buildNumber, String path)
String
getEditBuildFeaturesUrl(BuildType buildType)
String
getEditConfigurationPageUrl(String buildTypeExternalId)
String
getEditNotificationsUrl(String notificatorType)
String
getEditProjectPageUrl(String projectExternalId)
String
getEditTemplatePageUrl(String templateExternalId)
String
getEditVcsRootPageUrl(String vcsRootExternalId)
Deprecated.use a version with extProjectId argument instead.String
getEditVcsRootPageUrl(String extProjectId, String vcsRootExternalId)
String
getMutedProblemsUrl(String projectExternalId)
Returns the URL of the muted problems page.String
getOverviewUrl()
String
getPersonalQueuedBuildUrl(long personalChangeId, BuildType buildType)
URL of the specified personal queued build.String
getPluginUrl()
String
getProjectPageUrl(String projectExternalId)
String
getQueuedBuildUrl(QueuedBuild queuedBuild)
URL of the specified queued build.String
getResponsibilitiesUrl(String projectExternalId, String username)
Returns the URL of the responsibilities (investigations) page for the specified user.String
getTestDetailsUrl(String projectExternalId, long testNameId)
String
getTestDetailsUrl(String projectExternalId, long testNameId, String buildTypeId)
String
getUserNotificationsUrl()
String
getUserSettingsUrl()
String
getViewArtifactsUrl(Build build)
String
getViewChangesUrl(Build build)
String
getViewLogUrl(Build build)
String
getViewQueuedChangesUrl(QueuedBuild queuedBuild)
String
getViewResultsUrl(Build build)
protected String
prepareProjectUrl(String relativeUrl, String externalProjectID)
Returns URL for the particular project.protected String
prepareProjectUrlByBuildTypeTemplateExternalId(String relativeUrl, String extTemplateId)
Returns URL by external build template id.protected String
prepareProjectUrlByExternalBuildTypeId(String relativeUrl, String extBuildTypeId)
Returns URL by external BuildType id.protected String
prepareProjectUrlByInternalBuildTypeId(String relativeUrl, String intBuildTypeId)
Returns URL by internal BuildType id.protected String
prepareUrl(String relativeUrl)
-
-
-
Field Detail
-
BUILD_TAB_CHANGES
public static final String BUILD_TAB_CHANGES
- See Also:
- Constant Field Values
-
BUILD_TAB_PARAMETERS
public static final String BUILD_TAB_PARAMETERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getViewResultsUrl
@NotNull public String getViewResultsUrl(@NotNull Build build)
- Parameters:
build
- specified build- Returns:
- URL to view results page of the specified build
-
getViewChangesUrl
@NotNull public String getViewChangesUrl(@NotNull Build build)
- Parameters:
build
- specified build- Returns:
- URL to view changes page of the specified build
-
getViewQueuedChangesUrl
@NotNull public String getViewQueuedChangesUrl(@NotNull QueuedBuild queuedBuild)
- Parameters:
queuedBuild
- specified queuedBuild- Returns:
- URL to view changes page of the specified queuedBuild
-
getViewLogUrl
@NotNull public String getViewLogUrl(@NotNull Build build)
- Parameters:
build
- specified build- Returns:
- URL to view log page of the specified build
-
getViewArtifactsUrl
@NotNull public String getViewArtifactsUrl(@NotNull Build build)
- Parameters:
build
- specified build- Returns:
- URL to view artifacts page of the specified build
-
getBuildParametersUrl
@NotNull public String getBuildParametersUrl(@NotNull Build build)
- Parameters:
build
- specified build- Returns:
- URL to view build parameters page of the specified build
- Since:
- 2020.2
-
getBuildDependenciesUrl
@NotNull public String getBuildDependenciesUrl(@NotNull Build build)
- Parameters:
build
- specified build- Returns:
- URL to view build dependencies page of the specified build
- Since:
- 2020.2
-
getBuildDependenciesForQueuedBuildUrl
@NotNull public String getBuildDependenciesForQueuedBuildUrl(@NotNull QueuedBuild queuedBuild)
- Parameters:
queuedBuild
- specified queuedBuild- Returns:
- URL to view build dependencies page of the specified queuedBuild
-
getUserSettingsUrl
@NotNull public String getUserSettingsUrl()
- Returns:
- URL of the current (for the current session) user general settings page
-
getUserNotificationsUrl
@NotNull public String getUserNotificationsUrl()
- Returns:
- URL of the current (for the current session) user notification settings page
-
getDownloadArtefactUrl
@NotNull public String getDownloadArtefactUrl(@NotNull String buildTypeExternalId, long buildId, @NotNull String path)
-
getDownloadArtefactUrl
@NotNull public String getDownloadArtefactUrl(@NotNull String buildTypeExternalId, @NotNull String buildNumber, @NotNull String path)
-
getChangeUrl
@NotNull public String getChangeUrl(long modificationId, boolean isPersonal)
- Parameters:
modificationId
- id of modificationisPersonal
- true if this modification refers to personal change- Returns:
- URL of modification
-
getChangeFilesUrl
@NotNull public String getChangeFilesUrl(long modificationId, boolean isPersonal)
Returns the URL of change details page (files tab)- Parameters:
modificationId
- id of the modificationisPersonal
- true if the modification is personal- Returns:
- URL of modification
-
getQueuedBuildUrl
@NotNull public String getQueuedBuildUrl(@NotNull QueuedBuild queuedBuild)
URL of the specified queued build.- Parameters:
queuedBuild
- queued build- Returns:
- see above
- Since:
- 8.0
-
getBuildUrl
@NotNull public String getBuildUrl(@NotNull QueuedBuild queuedBuild)
URL of the specified build.- Parameters:
queuedBuild
- build- Returns:
- see above
- Since:
- 8.0
-
getPersonalQueuedBuildUrl
@NotNull public String getPersonalQueuedBuildUrl(long personalChangeId, @NotNull BuildType buildType)
URL of the specified personal queued build.- Parameters:
personalChangeId
- personal change idbuildType
- specified build configuration- Returns:
- see above
- Since:
- 8.0
-
getConfigurationHomePageUrl
@NotNull public String getConfigurationHomePageUrl(@NotNull BuildType buildType)
- Parameters:
buildType
- specified build configuration- Returns:
- URL of the specified configuration home page
-
getProjectPageUrl
@NotNull public String getProjectPageUrl(@NotNull String projectExternalId)
- Parameters:
projectExternalId
- specified project external id- Returns:
- URL of the specified project page
-
getEditProjectPageUrl
@NotNull public String getEditProjectPageUrl(@NotNull String projectExternalId)
- Parameters:
projectExternalId
- specified project external id- Returns:
- URL of the edit project page
- Since:
- 10.0
-
getEditConfigurationPageUrl
@NotNull public String getEditConfigurationPageUrl(@NotNull String buildTypeExternalId)
- Parameters:
buildTypeExternalId
- external id of a build configuration- Returns:
- URL of the edit build configuration page
- Since:
- 10.0
-
getEditTemplatePageUrl
@NotNull public String getEditTemplatePageUrl(@NotNull String templateExternalId)
- Parameters:
templateExternalId
- external id of a build configuration template- Returns:
- URL of the edit build configuration template page
- Since:
- 10.0
-
getEditVcsRootPageUrl
@Deprecated @NotNull public String getEditVcsRootPageUrl(@NotNull String vcsRootExternalId)
Deprecated.use a version with extProjectId argument instead.- Parameters:
vcsRootExternalId
- external id of a VCS root- Returns:
- URL of the edit VCS root page
- Since:
- 10.0
-
getEditVcsRootPageUrl
@NotNull public String getEditVcsRootPageUrl(@Nullable String extProjectId, @NotNull String vcsRootExternalId)
-
getCreateConfigurationPageUrl
@NotNull public String getCreateConfigurationPageUrl(@NotNull String projectExtId)
- Parameters:
projectExtId
- external id of a project- Returns:
- URL of the create build configuration page
- Since:
- 2017.1
-
getCreateProjectPageUrl
@NotNull public String getCreateProjectPageUrl(@NotNull String parentExtId)
- Parameters:
parentExtId
- external id of a parent project- Returns:
- URL of the create project page
- Since:
- 2017.1
-
getOverviewUrl
@NotNull public String getOverviewUrl()
- Returns:
- main overview page URL.
-
getEditNotificationsUrl
@NotNull public String getEditNotificationsUrl(@NotNull String notificatorType)
- Parameters:
notificatorType
- specified notificator buildType.- Returns:
- URL to edit specified notificator settings
-
getEditBuildFeaturesUrl
@NotNull public String getEditBuildFeaturesUrl(@NotNull BuildType buildType)
-
getPluginUrl
@NotNull public String getPluginUrl()
- Returns:
- URL to download IDEA plugin
-
getTestDetailsUrl
@NotNull public String getTestDetailsUrl(@NotNull String projectExternalId, long testNameId)
- Parameters:
projectExternalId
- the project idtestNameId
- test name id- Returns:
- URL of the test details page
-
getTestDetailsUrl
@NotNull public String getTestDetailsUrl(@NotNull String projectExternalId, long testNameId, @Nullable String buildTypeId)
- Parameters:
projectExternalId
- the project idtestNameId
- test name id- Returns:
- URL of the test details page
- Since:
- 7.1
-
getResponsibilitiesUrl
@NotNull public String getResponsibilitiesUrl(@NotNull String projectExternalId, @NotNull String username)
Returns the URL of the responsibilities (investigations) page for the specified user.- Parameters:
projectExternalId
- the project idusername
- the username or empty string (i.e. for all users)- Returns:
- responsibilities page URL
-
getMutedProblemsUrl
@NotNull public String getMutedProblemsUrl(@NotNull String projectExternalId)
Returns the URL of the muted problems page.- Parameters:
projectExternalId
- the project id- Returns:
- muted problems page URL
-
getAgentUrl
@Nullable public String getAgentUrl(@NotNull BuildAgent agent, @Nullable Integer agentTypeId)
- Returns:
- URL of the agent details page or null if there is no page to display details of the agent
- Since:
- 2017.2
-
getCloudImageUrl
@NotNull public String getCloudImageUrl(@NotNull Integer agentTypeId)
Return url of the cloud image using given agentTypeId.- Parameters:
agentTypeId
-- Returns:
- url of the cloud image page.
-
prepareProjectUrl
@NotNull protected String prepareProjectUrl(@NotNull String relativeUrl, @Nullable String externalProjectID)
Returns URL for the particular project. Can be overloaded in children.
-
prepareProjectUrlByExternalBuildTypeId
@NotNull protected String prepareProjectUrlByExternalBuildTypeId(@NotNull String relativeUrl, @Nullable String extBuildTypeId)
Returns URL by external BuildType id. Can be overloaded in children.
-
prepareProjectUrlByInternalBuildTypeId
@NotNull protected String prepareProjectUrlByInternalBuildTypeId(@NotNull String relativeUrl, @Nullable String intBuildTypeId)
Returns URL by internal BuildType id. Can be overloaded in children.
-
-