Package com.atlassian.maven.plugins.jgitflow.manager

Examples of com.atlassian.maven.plugins.jgitflow.manager.FlowReleaseManager.finish()


        assertOnRelease(flow, ctx.getDefaultReleaseVersion());

        //reload the projects
        projects = createReactorProjectsNoClean("release-projects", projectName);

        relman.finish(ctx, projects, session);

        String fullMessage = GitHelper.getLatestCommit(flow.git(), flow.git().getRepository().getBranch()).getFullMessage();

        assertTrue(fullMessage.startsWith(commentPrefix));
        assertTrue(fullMessage.endsWith(commentSuffix));
View Full Code Here


        relman.start(ctx,projects,session);

        assertEquals(flow.getReleaseBranchPrefix() + "1.0", git.getRepository().getBranch());

        relman.finish(ctx, projects, session);
       
    }

    @Test
    public void releaseFinishWithComplexVersionAndSuffix() throws Exception
View Full Code Here

           .setNoBuild(true);

        setupProjectsForMasterAndDevelop(projectRoot,projectName);

        FlowReleaseManager relman = getReleaseManager();
        relman.finish(ctx, projects, session);
       
        fail("release finish should throw if there's no release branch!!!");
       
    }
View Full Code Here

        setupProjectsForMasterAndDevelop(projectRoot,projectName);

        FlowReleaseManager relman = getReleaseManager();
        relman.start(ctx, projects, session);
        relman.finish(ctx, projects, session);

        assertEquals("old version incorrect", "1.0", extension.getOldVersion());
        assertEquals("new version incorrect", "1.1", extension.getNewVersion());

    }
View Full Code Here

        //delete the local release branch
        git.checkout().setName("develop").call();
        git.branchDelete().setBranchNames(flow.getReleaseBranchPrefix() + "1.0").setForce(true).call();
       
        relman.finish(ctx, projects, session);
       
        assertOnDevelop(flow);

    }
View Full Code Here

        ReleaseContext ctx = new ReleaseContext(projectRoot);
        ctx.setInteractive(false).setEnableFeatureVersions(true).setNoBuild(true);

        MavenSession session = new MavenSession(getContainer(), new Settings(), localRepository, null, null, null, projectRoot.getAbsolutePath(), new Properties(), new Properties(), null);

        relman.finish(ctx, projects, session);

        //reload the projects
        projects = createReactorProjectsNoClean("rewrite-for-release", projectSubdir);

        String pom = FileUtils.readFileToString(projects.get(0).getFile());
View Full Code Here

        ReleaseContext ctx = new ReleaseContext(projectRoot);
        ctx.setInteractive(false).setEnableFeatureVersions(true).setNoBuild(true).setFlowInitContext(initContext);

        MavenSession session = new MavenSession(getContainer(), new Settings(), localRepository, null, null, null, projectRoot.getAbsolutePath(), new Properties(), new Properties(), null);

        relman.finish(ctx, projects, session);
       
        assertEquals(developName,flow.git().getRepository().getBranch());
        //reload the projects
        projects = createReactorProjectsNoClean("rewrite-for-release", projectSubdir);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.