Skip to content
Permalink
Browse files
[JENKINS-41759] Fixed another regression caused by refactoring
  • Loading branch information
rsandell committed Feb 9, 2017
1 parent a97ef23 commit 0691d012030c05d7da7b3efbce0dfa521e7ac4e7
Showing 1 changed file with 4 additions and 2 deletions.
@@ -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
}
}

0 comments on commit 0691d01

Please sign in to comment.