You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Gradle extractor may be run by CI servers such as Jenkins. Before the CI server runs the Gradle extractor in order to build the Gradle project,
115
+
* it generated build-info properties file that contains Gradle extractor's configurations. those generated properties could be deprecated but the Gradle extractor could be the latest version (according to the build.gradle).
116
+
* This test checks that the deprecated build-info properties are being handled correctly
Copy file name to clipboardExpand all lines: build-info-extractor/src/main/java/org/jfrog/build/extractor/clientConfiguration/ArtifactoryClientConfiguration.java
+5-2
Original file line number
Diff line number
Diff line change
@@ -923,9 +923,12 @@ public ImmutableMap<String, String> getMatrixParams() {
923
923
if (calculatedMatrixParams != null) {
924
924
returncalculatedMatrixParams;
925
925
}
926
-
Map<String, String> result = getResolveMatrixParams(getMatrixParamPrefix());
926
+
// First, get value using deprecated key.
927
+
// This check must be first, otherwise, build.gradle properties will override the CI (e.g Jenkins / teamcity) properties.
928
+
Map<String, String> result = getResolveMatrixParams(getDeprecatedMatrixParamPrefix());
927
929
if (result.size() == 0) {
928
-
result = getResolveMatrixParams(getDeprecatedMatrixParamPrefix());
930
+
// Fallback to none deprecated key.
931
+
result = getResolveMatrixParams(getMatrixParamPrefix());
Copy file name to clipboardExpand all lines: build-info-extractor/src/main/java/org/jfrog/build/extractor/clientConfiguration/PrefixPropertyHandler.java
+18-27
Original file line number
Diff line number
Diff line change
@@ -47,17 +47,10 @@ public String getStringValue(String key) {
0 commit comments