Navigation Menu

Skip to content

Commit

Permalink
[JENKINS-41759] Fixed another regression caused by refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
rsandell authored and abayer committed Feb 10, 2017
1 parent d460eaf commit 73ecf25
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -58,15 +58,17 @@ public class PropertiesToMapTranslator implements MethodMissingWrapper, Serializ
}

if (resolveEnvironmentContributors) {
UninstantiatedDescribable retVal
def retVal
if (argValue != null) {
retVal = script."${s}"(argValue)
} else {
retVal = script."${s}"()
}

if (isOfType(retVal, DeclarativeEnvironmentContributor.class)) {
if (retVal instanceof UninstantiatedDescribable && isOfType(retVal, DeclarativeEnvironmentContributor.class)) {
return retVal.instantiate()
} else {
return retVal
}
}

Expand Down

0 comments on commit 73ecf25

Please sign in to comment.