Skip to main content
Version: Next

getHarnessArchiveUrl()

Home > @backstage/integration > getHarnessArchiveUrl

Given a URL pointing to a repository/path, returns a URL for archive contents of the repository.

Signature:

function getHarnessArchiveUrl(config: HarnessIntegrationConfig, url: string): string;

Parameters

ParameterTypeDescription
configHarnessIntegrationConfigThe relevant provider config
urlstringA URL pointing to a repository/path

Returns:

string

Remarks

Converts from: https://qa.harness.io/ng/account/accountId/module/code/orgs/orgId/projects/projectName/repos/repoName/files/branch/\~/fileName to: https://qa.harness.io/gateway/code/api/v1/repos/accountId/orgId/projectName/repoName/+/archive/branch.zip?routingId=accountId