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

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


           .setReleaseFinishExtension(extension);

        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


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

        FlowReleaseManager relman = getReleaseManager();

        relman.start(ctx,projects,session);

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

        //delete the local release branch
        git.checkout().setName("develop").call();
View Full Code Here

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

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

        relman.start(ctx, projects, session);

        String pom = FileUtils.readFileToString(projects.get(0).getFile());
        assertTrue(pom.contains("1.0-" + UNDERSCORED_FEATURE_NAME + "-SNAPSHOT"));
       
        return flow;
View Full Code Here

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

            relman.start(ctx, projects, session);
        }
        catch (MavenJGitFlowException e)
        {
            assertEquals(DirtyWorkingTreeException.class, e.getCause().getClass());
            throw e;
View Full Code Here

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

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

        relman.start(ctx, projects, session);

        assertOnHotfix(flow);

        compareSnapPomFiles(projects);
    }
View Full Code Here

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

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

        relman.start(ctx, projects, session);

        assertOnHotfix(flow);

        compareSnapPomFiles(projects);
    }
View Full Code Here

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

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

        relman.start(ctx, projects, session);

        assertOnHotfix(flow);

        compareSnapPomFiles(projects);
    }
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.