private String expandEnvironmentVariables( String string, @SuppressWarnings("rawtypes") AbstractBuild build, ConsoleLogger console) { try { return build.getEnvironment(console.getListener()).expand(string); } catch (Exception e) { throw new RuntimeException(e); } }