File tree 2 files changed +5
-5
lines changed
main/java/com/google/cloud/tools/jib/gradle
test/java/com/google/cloud/tools/jib/gradle
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,10 @@ public void setJvmFlags(Provider<List<String>> jvmFlags) {
113
113
public MapProperty <String , String > getEnvironment () {
114
114
String environmentProperty = System .getProperty (PropertyNames .CONTAINER_ENVIRONMENT );
115
115
if (environmentProperty != null ) {
116
- Map <String , String > parsedLabels =
116
+ Map <String , String > parsedEnvironment =
117
117
ConfigurationPropertyValidator .parseMapProperty (environmentProperty );
118
- if (!parsedLabels .equals (environment .get ())) {
119
- environment .set (parsedLabels );
118
+ if (!parsedEnvironment .equals (environment .get ())) {
119
+ environment .set (parsedEnvironment );
120
120
}
121
121
}
122
122
return environment ;
Original file line number Diff line number Diff line change @@ -370,8 +370,8 @@ public void testLazyEvalForLabels() {
370
370
371
371
@ Test
372
372
public void testLazyEvalForEnvironment () {
373
- BuildResult showLabels = testProject .build ("showenvironment" , "-Djib.console=plain" );
374
- assertThat (showLabels .getOutput ())
373
+ BuildResult showEnvironment = testProject .build ("showenvironment" , "-Djib.console=plain" );
374
+ assertThat (showEnvironment .getOutput ())
375
375
.contains (
376
376
"environment contains values [var1:val1updated, var2:val2updated]" );
377
377
}
You can’t perform that action at this time.
0 commit comments