Examples of releaseStart()


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

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

        //make sure develop has our commit
        assertTrue(GitHelper.isMergedInto(git, commitTwo, flow.getDevelopBranchName()));
       
        flow.releaseStart("1.0").setStartCommit(commitOne.getName()).call();

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

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

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

            if(ctx.isPush() || !ctx.isNoTag())
            {
                ensureOrigin(reactorProjects, flow);
            }
           
            flow.releaseStart(releaseLabel).call();
        }
        catch (ReleaseBranchExistsException e)
        {
            //since the release branch already exists, just check it out
            try
View Full Code Here

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

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

        ReleaseContext ctx = new ReleaseContext(projectRoot);

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

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


    }
View Full Code Here

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

            flow = jGitFlowProvider.gitFlow();
           
            startExtension.init(ctx.getReleaseStartExtension());

            flow.releaseStart(releaseLabel)
                .setAllowUntracked(ctx.isAllowUntracked())
                .setPush(ctx.isPushReleases())
                .setStartCommit(ctx.getStartCommit())
                .setScmMessagePrefix(ctx.getScmCommentPrefix())
                .setScmMessageSuffix(ctx.getScmCommentSuffix())
View Full Code Here

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

            if(ctx.isPush() || !ctx.isNoTag())
            {
                ensureOrigin(reactorProjects, flow);
            }
           
            flow.releaseStart(releaseLabel).call();
        }
        catch (ReleaseBranchExistsException e)
        {
            try
            {
View Full Code Here

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

            if(ctx.isPush() || !ctx.isNoTag())
            {
                projectHelper.ensureOrigin(reactorProjects, flow);
            }
           
            flow.releaseStart(releaseLabel).call();
        }
        catch (GitAPIException e)
        {
            throw new JGitFlowReleaseException("Error starting release: " + e.getMessage(), e);
        }
View Full Code Here

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

            if(ctx.isPush() || !ctx.isNoTag())
            {
                projectHelper.ensureOrigin(reactorProjects, flow);
            }
           
            flow.releaseStart(releaseLabel).call();
        }
        catch (ReleaseBranchExistsException e)
        {
            try
            {
View Full Code Here

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

            if(ctx.isPush() || !ctx.isNoTag())
            {
                ensureOrigin(reactorProjects, flow);
            }
           
            flow.releaseStart(releaseLabel).call();
        }
        catch (ReleaseBranchExistsException e)
        {
            //since the release branch already exists, just check it out
            try
View Full Code Here

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

        git = Git.cloneRepository().setDirectory(newDir()).setURI("file://" + remoteGit.getRepository().getWorkTree().getPath()).call();

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

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

        flow.git().push().setRemote("origin").call();

        //do a commit to the remote develop branch
        List<Ref> remoteBranches =  remoteGit.branchList().setListMode(ListBranchCommand.ListMode.ALL).call();
View Full Code Here

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

        git = Git.cloneRepository().setDirectory(newDir()).setURI("file://" + remoteGit.getRepository().getWorkTree().getPath()).call();

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

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

        flow.git().push().setRemote("origin").call();

        //do a commit to the remote develop branch
        List<Ref> remoteBranches =  remoteGit.branchList().setListMode(ListBranchCommand.ListMode.ALL).call();
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.