Examples of JGitFlowExtensionException


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

                mergingCommand.setMessage(ReleaseUtil.interpolate(ctx.getTagMessage(), rootProject.getModel()));
            }
        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error setting tag message", e);
        }
    }
View Full Code Here

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

                    cacheKey = ProjectCacheKey.HOTFIX_LABEL;
                    versionSuffix = "";
                    break;

                default:
                    throw new JGitFlowExtensionException("Unsupported branch type '" + branchType.name() + "' while running " + this.getClass().getSimpleName() + " command");
            }

            checkNotNull(cacheKey);
            String fullBranchName = branchHelper.getCurrentBranchName();

            getLogger().info("(" + fullBranchName + ") Updating poms for " + branchType.name());

            //reload the reactor projects for release
            List<MavenProject> branchProjects = branchHelper.getProjectsForCurrentBranch();

            pomUpdater.removeSnapshotFromPomVersions(cacheKey, versionSuffix, branchProjects);

            projectHelper.commitAllPoms(flow.git(), branchProjects, ctx.getScmCommentPrefix() + "updating poms for branch'" + fullBranchName + "' with non-snapshot versions" + ctx.getScmCommentSuffix());
        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error updating poms with non-snapshot versions for branch '" + branchType.name() + "'");
        }
    }
View Full Code Here

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

           
            flow.git().checkout().setName(originalBranchName).call();
        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error updating develop poms to previously cached versions", e);
        }
    }
View Full Code Here

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

            flow.git().checkout().setName(originalBranchName).call();
           
        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error updating develop poms to next development version", e);
        }
    }
View Full Code Here

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

                    versionType = VersionType.HOTFIX;
                    versionSuffix = "";
                    break;
               
                default:
                    throw new JGitFlowExtensionException("Unsupported branch type '" + branchType.name() + "' while running " + this.getClass().getSimpleName() + " command");
            }

            checkNotNull(cacheKey);
            checkNotNull(versionType);

            unprefixedBranchName = branchHelper.getUnprefixedCurrentBranchName();

            //reload the reactor projects for release
            List<MavenProject> branchProjects = branchHelper.getProjectsForCurrentBranch();

            pomUpdater.addSnapshotToPomVersions(cacheKey, versionType, versionSuffix, branchProjects);

            projectHelper.commitAllPoms(flow.git(), branchProjects, ctx.getScmCommentPrefix() + "updating poms for branch '" + unprefixedBranchName + "' with snapshot versions" + ctx.getScmCommentSuffix());
        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error updating poms with snapshot versions for branch '" + unprefixedBranchName + "' : " + e.getMessage(),e);
        }
    }
View Full Code Here

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

            flow.git().checkout().setName(originalBranchName).call();
           
        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error updating release poms to develop version", e);
        }
    }
View Full Code Here

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

            flow.git().checkout().setName(originalBranchName).call();
        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error updating release poms to previously cached versions", e);
        }
    }
View Full Code Here

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

                mavenExecutionHelper.execute(rootProject, sap.getSession());
            }
        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error building project from " + this.getClass().getSimpleName(),e);
        }
    }
View Full Code Here

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

            pomUpdater.copyPomVersionsFromProject(hotfixProjects, currentProjects);
            projectHelper.commitAllPoms(git, currentProjects, ctx.getScmCommentPrefix() + "Updating " + currentName + " poms to hotfix version to avoid merge conflicts" + ctx.getScmCommentSuffix());
        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error updating current branch poms to hotfix version", e);
        }

    }
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.