Package com.atlassian.maven.plugins.jgitflow

Examples of com.atlassian.maven.plugins.jgitflow.ReleaseContext


        String projectName = "complex-version-and-suffix";

        List<MavenProject> projects = createReactorProjects("rewrite-for-release", projectName);
        File projectRoot = projects.get(0).getBasedir();

        ReleaseContext ctx = new ReleaseContext(projectRoot);
        ctx.setInteractive(false).setNoTag(true).setAllowSnapshots(true).setReleaseBranchVersionSuffix("RC");

        basicReleaseRewriteTest(projectName, ctx);
    }
View Full Code Here


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

        TestFinishExtension extension = new TestFinishExtension();

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

        setupProjectsForMasterAndDevelop(projectRoot,projectName);
View Full Code Here

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

        TestFinishExtension extension = new TestFinishExtension();

        ReleaseContext ctx = new ReleaseContext(projectRoot);
        ctx.setInteractive(false)
           .setNoTag(true)
           .setAllowSnapshots(true)
           .setNoBuild(true)
           .setReleaseFinishExtension(extension);
View Full Code Here

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

        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();

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

        FlowReleaseManager relman = getReleaseManager();

        relman.start(ctx,projects,session);
View Full Code Here

        List<MavenProject> projects = createReactorProjects("rewrite-for-release", projectSubdir,false);
        File projectRoot = projects.get(0).getBasedir();
       
        FlowReleaseManager relman = getFeatureManager();

        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);
View Full Code Here

        List<MavenProject> projects = createReactorProjects("rewrite-for-release", projectSubdir,false);
        File projectRoot = projects.get(0).getBasedir();

        FlowReleaseManager relman = getFeatureManager();

        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);
       
View Full Code Here

        initialCommitAll(flow);

        FlowReleaseManager relman = getFeatureManager();

        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);
View Full Code Here

        List<MavenProject> projects = createReactorProjects("rewrite-for-hotfix", projectSubdir);
        File projectRoot = projects.get(0).getBasedir();

        FlowReleaseManager relman = getHotfixManager();

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

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

        assertTrue(GitHelper.localBranchExists(flow.git(), flow.getHotfixBranchPrefix() + "1.0.1"));

        FlowReleaseManager relman = getHotfixManager();

        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);
View Full Code Here

        assertTrue(GitHelper.localBranchExists(flow.git(), flow.getHotfixBranchPrefix() + "0.2"));

        FlowReleaseManager relman = getHotfixManager();

        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);
View Full Code Here

TOP

Related Classes of com.atlassian.maven.plugins.jgitflow.ReleaseContext

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.