PageRenderTime 100ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/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
Possible License(s): Apache-2.0
  1. import com.atlassian.maven.plugins.jgitflow.it.FinishScriptHelper
  2. import org.apache.commons.io.FileUtils
  3. import org.eclipse.jgit.api.Git
  4. try
  5. {
  6. helper = new FinishScriptHelper(basedir, localRepositoryPath, context)
  7. FinishScriptHelper.Gits gits = helper.createAndCloneRepo("1.0","1.1-SNAPSHOT","my-feature","feature/")
  8. Git localGit = gits.local;
  9. localGit.checkout().setName("develop").call();
  10. return true
  11. }
  12. catch (Exception e)
  13. {
  14. System.err.println(e.getMessage())
  15. return false;
  16. }