Skip to content

Commit

Permalink
Bugfix - replaced variables overridden after project started (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi authored Feb 16, 2021
1 parent f116bc4 commit 1c2b8f7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 1c2b8f7

Please sign in to comment.