Search in sources :

Example 1 with UnitTestProvider

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;
}
Also used : UnitTestProvider(com.uber.jenkins.phabricator.unit.UnitTestProvider) Logger(com.uber.jenkins.phabricator.utils.Logger) InstanceProvider(com.uber.jenkins.phabricator.provider.InstanceProvider)

Aggregations

InstanceProvider (com.uber.jenkins.phabricator.provider.InstanceProvider)1 UnitTestProvider (com.uber.jenkins.phabricator.unit.UnitTestProvider)1 Logger (com.uber.jenkins.phabricator.utils.Logger)1