From f96b0304dc6a236515fd411e9c15e268ee6ed701 Mon Sep 17 00:00:00 2001 From: eyalbe4 Date: Sat, 28 Dec 2024 21:12:14 +0200 Subject: [PATCH] Fix Build-Info URL --- .../jfrog/teamcity/agent/ArtifactoryAgentLifeCycleAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/src/main/java/org/jfrog/teamcity/agent/ArtifactoryAgentLifeCycleAdapter.java b/agent/src/main/java/org/jfrog/teamcity/agent/ArtifactoryAgentLifeCycleAdapter.java index 4ec006d..49b2957 100644 --- a/agent/src/main/java/org/jfrog/teamcity/agent/ArtifactoryAgentLifeCycleAdapter.java +++ b/agent/src/main/java/org/jfrog/teamcity/agent/ArtifactoryAgentLifeCycleAdapter.java @@ -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),