Examples of JGitFlowExtensionException


Examples of com.atlassian.jgitflow.core.exception.JGitFlowExtensionException

            projectHelper.commitAllPoms(flow.git(), branchProjects, ctx.getScmCommentPrefix() + "updating poms for " + featureVersion + " version" + ctx.getScmCommentSuffix());

        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error updating poms with feature versions for branch '" + unprefixedBranchName + "'");
        }
    }
View Full Code Here

Examples of com.atlassian.jgitflow.core.exception.JGitFlowExtensionException

                case FEATURE:
                    cacheKey = ProjectCacheKey.FEATURE_BRANCH;
                    break;

                default:
                    throw new JGitFlowExtensionException("Unsupported branch type '" + branchType.name() + "' while running " + this.getClass().getSimpleName() + " command");
            }
           
            ReleaseContext ctx = contextProvider.getContext();
            List<MavenProject> branchProjects = branchHelper.getProjectsForCurrentBranch();

            projectHelper.checkPomForVersionState(VersionState.RELEASE, branchProjects);

            if (!ctx.isAllowSnapshots())
            {
                List<String> snapshots = projectHelper.checkForNonReactorSnapshots(cacheKey, branchProjects);
                if (!snapshots.isEmpty())
                {
                    String details = Joiner.on(ls).join(snapshots);
                    throw new UnresolvedSnapshotsException("Cannot finish a " + branchType.name().toLowerCase() + " due to snapshot dependencies:" + ls + details);
                }
            }
        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error verifying version state in poms: " + e.getMessage(), e);
        }
    }
View Full Code Here

Examples of com.atlassian.jgitflow.core.exception.JGitFlowExtensionException

        {
            versionCacheProvider.cacheCurrentBranchVersions();
        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error caching current branch versions", e);
        }       
    }
View Full Code Here

Examples of com.atlassian.jgitflow.core.exception.JGitFlowExtensionException

           
            execute(externalExtension, getNewVersion(),getOldVersion(),new JGitFlowInfo(flow.git(), configuration, flow.getReporter()));
        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error running external extension for branch change", e);
        }
    }
View Full Code Here

Examples of com.atlassian.jgitflow.core.exception.JGitFlowExtensionException

    public void execute(GitFlowConfiguration configuration, Git git, JGitFlowCommand gitFlowCommand, JGitFlowReporter reporter) throws JGitFlowExtensionException
    {
        this.methodCalled = true;
        if(withException)
        {
            throw new JGitFlowExtensionException("Exception!!!");
        }
    }
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.