use of com.uber.jenkins.phabricator.unit.UnitTestProvider in project phabricator-jenkins-plugin by uber.
the class PhabricatorNotifier method getUnitProvider.
private UnitTestProvider getUnitProvider(AbstractBuild build, BuildListener listener) {
Logger logger = new Logger(listener.getLogger());
InstanceProvider<UnitTestProvider> provider = new InstanceProvider<UnitTestProvider>(Jenkins.getInstance(), JUNIT_PLUGIN_NAME, JUNIT_CLASS_NAME, logger);
UnitTestProvider unitProvider = provider.getInstance();
if (unitProvider == null) {
return null;
}
unitProvider.setBuild(build);
return unitProvider;
}
Aggregations