Package com.groupon.jenkins.dynamic.build.repository

Examples of com.groupon.jenkins.dynamic.build.repository.DynamicBuildRepository


        project.scheduleBuild2(0).get();

        assert(repo.getDatastore().getCount(DbBackedBuild.class) > 0);

        for(DbBackedBuild build : new DynamicBuildRepository().getBuilds(project)) {
            assertNotNull(build.getParent());
            assertNotNull(build.getState());
            assertNotNull(build.getResult());
            assertNotNull(build.getNumber());
            assertNotNull(build.getCurrentBranch());
View Full Code Here


    private Collection<B> values;
    private final DynamicBuildRepository dynamicBuildRepository;

    public MongoRunMap(DbBackedProject<P, B> project) {
        this.project = project;
        this.dynamicBuildRepository = new DynamicBuildRepository();
    }
View Full Code Here

    }

    @Override
    public Collection<B> values() {
        if (values == null) {
            values = Lists.newArrayList(new DynamicBuildRepository().<B> latestBuilds(project, 20));
        }
        return values;
    }
View Full Code Here

    public MyBuildsView(String name) {
        super(name);
    }

    protected DynamicBuildRepository makeDynamicBuildRepository() {
        return new DynamicBuildRepository();
    }
View Full Code Here

    }

    @Override
    public synchronized void save() throws IOException {
        LOGGER.info("saving build:" + getName() + ": " + getNumber());
        new DynamicBuildRepository().save(this);
    }
View Full Code Here

    public String getWhyKeepLog() {
        return null;
    }

    public Run getPreviousFinishedBuildOfSameBranch(BuildListener listener) {
        return new DynamicBuildRepository().getPreviousFinishedBuildOfSameBranch(this, getCurrentBranch().toString());
    }
View Full Code Here

    }

    @PostLoad
    protected void initRepos() {
        this.dynamicProjectRepository = new DynamicProjectRepository();
        this.dynamicBuildRepository = new DynamicBuildRepository();
    }
View Full Code Here

        rsp.forwardToPreviousPage(req);
    }

    @Override
    protected HistoryWidget createHistoryWidget() {
        return new BranchHistoryWidget(this, new RunList(), HISTORY_ADAPTER, new DynamicBuildRepository(), getCurrentBranch());
    }
View Full Code Here

        return "lastSuccessfulMaster";
    }

    @Override
    public Run<?, ?> resolve(Job<?, ?> job) {
        return (Run<?, ?>) new DynamicBuildRepository().getLastSuccessfulBuild((DbBackedProject) job, "master");
    }
View Full Code Here

    private final DbBackedProject<P, B> project;
    private final DynamicBuildRepository dynamicBuildRepository;

    public DbBackedRunList(DbBackedProject<P, B> project) {
        this.project = project;
        this.dynamicBuildRepository = new DynamicBuildRepository();
    }
View Full Code Here

TOP

Related Classes of com.groupon.jenkins.dynamic.build.repository.DynamicBuildRepository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.