Skip to content

Commit

Permalink
Fix Build-Info URL
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalb4doc committed Dec 28, 2024
1 parent 39412aa commit f96b030
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private static void addBuildInfoUrlParam(BuildRunnerContext runner) {
String artifactoryUrl = StringUtils.removeEnd(runner.getRunnerParameters().get(RunnerParameterKeys.URL), "/");
String buildInfoUrl;
if (StringUtils.endsWith(artifactoryUrl, "/artifactory")) {
buildInfoUrl = createBuildInfoUrl(StringUtils.removeEnd(artifactoryUrl, "/artifactory"), (String)runner.getRunnerParameters().get("org.jfrog.artifactory.build.name"), runner.getBuild().getBuildNumber(), (String)runner.getRunnerParameters().get("org.jfrog.artifactory.build.timestamp"));
buildInfoUrl = createBuildInfoUrl(StringUtils.removeEnd(artifactoryUrl, "/artifactory"), (String)runner.getRunnerParameters().get(BUILD_NAME), runner.getBuild().getBuildNumber(), (String)runner.getRunnerParameters().get("org.jfrog.artifactory.build.timestamp"));
} else {
// Without the platform URL it would work only on Artifactory 6
buildInfoUrl = BuildInfoExtractorUtils.createBuildInfoUrl(artifactoryUrl, runner.getRunnerParameters().get(BUILD_NAME),
Expand Down

0 comments on commit f96b030

Please sign in to comment.