Package hudson.matrix

Examples of hudson.matrix.MatrixAggregator


        return (ExtendedEmailPublisherDescriptor) Jenkins.getInstance().getDescriptor(getClass());
    }

    public MatrixAggregator createAggregator(MatrixBuild matrixbuild,
            Launcher launcher, BuildListener buildlistener) {
        return new MatrixAggregator(matrixbuild, launcher, buildlistener) {
            @Override
            public boolean endBuild() throws InterruptedException, IOException {
                LOGGER.log(Level.FINER, "end build of " + this.build.getDisplayName());

                // Will be run by parent so we check if needed to be executed by parent
View Full Code Here


    /**
     * For a matrix project, push should only happen once.
     */
    public MatrixAggregator createAggregator(MatrixBuild build, Launcher launcher, BuildListener listener) {
        return new MatrixAggregator(build, launcher, listener) {
            @Override
            public boolean endBuild() throws InterruptedException, IOException {
                return GitPublisher.this.perform(build, launcher, listener);
            }
        };
View Full Code Here

        this.matrixMultiplier = matrixMultiplier;
    }
   
   
    public MatrixAggregator createAggregator(MatrixBuild build, Launcher launcher, BuildListener listener) {
        return new MatrixAggregator(build, launcher, listener) {

            @Override
            public boolean startBuild() throws InterruptedException,
                    IOException {
                if (getNotifyOnStart()) {
View Full Code Here

        publisher.prebuild(configurationBuild, listener);
        publisher.perform(configurationBuild, null, listener);
        verify(publisher, times(0)).notifyChatsOnBuildStart(any(AbstractBuild.class), any(BuildListener.class));
        verify(publisher, times(0)).notifyOnBuildEnd(any(AbstractBuild.class), any(BuildListener.class));
       
        MatrixAggregator aggregator = publisher.createAggregator(parentBuild, null, listener);
        aggregator.startBuild();
        aggregator.endBuild();
        verify(publisher).notifyChatsOnBuildStart(parentBuild, listener);
        verify(publisher).notifyOnBuildEnd(parentBuild, listener);
    }
View Full Code Here

   
    @Test
    public void testOnlyConfigurations() throws InterruptedException, IOException {
        when(publisher.getMatrixNotifier()).thenReturn(MatrixJobMultiplier.ONLY_CONFIGURATIONS);
       
        MatrixAggregator aggregator = publisher.createAggregator(parentBuild, null, listener);
        aggregator.startBuild();
        aggregator.endBuild();
        verify(publisher, times(0)).notifyChatsOnBuildStart(parentBuild, listener);
        verify(publisher, times(0)).notifyOnBuildEnd(parentBuild, listener);
       
        publisher.prebuild(configurationBuild, listener);
        publisher.perform(configurationBuild, null, listener);
View Full Code Here

   
    @Test
    public void testOnlyBoth() throws InterruptedException, IOException {
        when(publisher.getMatrixNotifier()).thenReturn(MatrixJobMultiplier.ALL);
       
        MatrixAggregator aggregator = publisher.createAggregator(parentBuild, null, listener);
        aggregator.startBuild();
        aggregator.endBuild();
        verify(publisher).notifyChatsOnBuildStart(parentBuild, listener);
        verify(publisher).notifyOnBuildEnd(parentBuild, listener);
       
        publisher.prebuild(configurationBuild, listener);
        publisher.perform(configurationBuild, null, listener);
View Full Code Here

TOP

Related Classes of hudson.matrix.MatrixAggregator

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.