From 1c2b8f777ed3eaecf1057f2e53d595c89d130153 Mon Sep 17 00:00:00 2001 From: Yahav Itzhak Date: Tue, 16 Feb 2021 17:50:36 +0200 Subject: [PATCH] Bugfix - replaced variables overridden after project started (#11) --- .../org/jfrog/buildinfo/deployment/BuildInfoRecorder.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/jfrog/buildinfo/deployment/BuildInfoRecorder.java b/src/main/java/org/jfrog/buildinfo/deployment/BuildInfoRecorder.java index 05c3ba0..c1e7f32 100644 --- a/src/main/java/org/jfrog/buildinfo/deployment/BuildInfoRecorder.java +++ b/src/main/java/org/jfrog/buildinfo/deployment/BuildInfoRecorder.java @@ -28,6 +28,7 @@ import org.jfrog.build.extractor.clientConfiguration.deploy.DeployDetails; import org.jfrog.buildinfo.resolution.RepositoryListener; import org.jfrog.buildinfo.types.ModuleArtifacts; +import org.jfrog.buildinfo.utils.Utils; import java.io.File; import java.util.*; @@ -72,6 +73,9 @@ public void projectSucceeded(ExecutionEvent event) { .id(getModuleIdString(project.getGroupId(), project.getArtifactId(), project.getVersion())) .properties(project.getProperties()); + // Replace variables + conf.getAllProperties().replaceAll((key, value) -> Utils.parseInput(value)); + // Fill currentModuleArtifacts addArtifacts(project);