/jgitflow-maven-plugin/src/it/projects/release-start-pom-rewrite/prebuild.groovy
https://bitbucket.org/atlassian/jgit-flow · Groovy · 19 lines · 16 code · 3 blank · 0 comment · 0 complexity · 153e3fcbb22e5c96737f828c98460dbf MD5 · raw file
- import com.atlassian.maven.plugins.jgitflow.it.FinishScriptHelper
- import org.apache.commons.io.FileUtils
- import org.eclipse.jgit.api.Git
- try
- {
- helper = new FinishScriptHelper(basedir, localRepositoryPath, context)
- FinishScriptHelper.Gits gits = helper.createAndCloneRepo("1.0","1.1-SNAPSHOT","my-feature","feature/")
- Git localGit = gits.local;
- localGit.checkout().setName("develop").call();
-
- return true
- }
- catch (Exception e)
- {
- System.err.println(e.getMessage())
- return false;
- }