/jgitflow-maven-plugin/src/it/projects/feature-finish-version-only-change/prebuild.groovy
Groovy | 21 lines | 17 code | 4 blank | 0 comment | 0 complexity | 41a6888912266a1945311169d292a09a MD5 | raw file
Possible License(s): Apache-2.0
- import com.atlassian.maven.plugins.jgitflow.it.FinishScriptHelper
- import org.eclipse.jgit.api.CreateBranchCommand
- 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().setUpstreamMode(CreateBranchCommand.SetupUpstreamMode.TRACK).setCreateBranch(true).setStartPoint("origin/feature/my-feature").setName("feature/my-feature").call()
- helper.comparePomFiles("expected-feature-pom.xml", "pom.xml")
-
- return true
- }
- catch (Exception e)
- {
- System.err.println(e.getMessage())
- return false;
- }