Examples of hotfixStart()


Examples of com.atlassian.jgitflow.core.JGitFlow.hotfixStart()

        RevCommit commit = git.commit().setMessage("committing junk file").call();

        //make sure develop has our commit
        assertTrue(GitHelper.isMergedInto(git, commit, flow.getMasterBranchName()));

        flow.hotfixStart("1.0").call();

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

        //the hotfix branch should have our commit
        assertTrue(GitHelper.isMergedInto(git, commit, flow.getHotfixBranchPrefix() + "1.0"));
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.hotfixStart()

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

        git.branchCreate().setName(flow.getHotfixBranchPrefix() + "1.0").call();

        flow.hotfixStart("1.0").call();
    }

    @Test(expected = TagExistsException.class)
    public void startHotfixWithExistingLocalTag() throws Exception
    {
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.hotfixStart()

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

        git.tag().setName(flow.getVersionTagPrefix() + "1.0").call();

        flow.hotfixStart("1.0").call();
    }

    @Test(expected = TagExistsException.class)
    public void startHotfixWithExistingLocalPrefixedTag() throws Exception
    {
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.hotfixStart()

        List<Ref> refs = git.tagList().call();
        String name = refs.get(0).getName();

        assertEquals(Constants.R_TAGS + "vtag/1.0",name);

        flow.hotfixStart("1.0").call();
    }

    @Test(expected = TagExistsException.class)
    public void startHotfixWithExistingRemoteTagAndFetch() throws Exception
    {
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.hotfixStart()

        git.push().setRemote("origin").add("develop").call();

        //add the remote tag
        remoteGit.tag().setName(flow.getVersionTagPrefix() + "1.0").call();

        flow.hotfixStart("1.0").setFetch(true).call();

    }

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

Examples of com.atlassian.jgitflow.core.JGitFlow.hotfixStart()

        git.push().setRemote("origin").add("develop").call();

        //add the remote tag
        remoteGit.tag().setName(flow.getVersionTagPrefix() + "1.0").call();

        flow.hotfixStart("1.0").call();

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

    }
}
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.hotfixStart()

            }
           
            config = configManager.getConfiguration(flow.git());

            hotfixLabel = getHotfixLabel(ctx, reactorProjects, config);
            flow.hotfixStart(hotfixLabel).call();
        }
        catch (HotfixBranchExistsException e)
        {
            //since the release branch already exists, just check it out
            try
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.hotfixStart()

            flow = jGitFlowProvider.gitFlow();

            startExtension.init(ctx.getHotfixStartExtension());

            flow.hotfixStart(hotfixLabel)
                .setAllowUntracked(ctx.isAllowUntracked())
                .setPush(ctx.isPushHotfixes())
                .setStartCommit(ctx.getStartCommit())
                .setScmMessagePrefix(ctx.getScmCommentPrefix())
                .setScmMessageSuffix(ctx.getScmCommentSuffix())
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.hotfixStart()

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

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

        flow.hotfixStart("1.0.1").call();

        assertOnHotfix(flow);


    }
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.hotfixStart()

            }
           
            config = configManager.getConfiguration(flow.git());

            hotfixLabel = getHotfixLabel(ctx, reactorProjects, config);
            flow.hotfixStart(hotfixLabel).call();
        }
        catch (HotfixBranchExistsException e)
        {
            try
            {
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.