PageRenderTime 71ms CodeModel.GetById 41ms RepoModel.GetById 0ms app.codeStats 0ms

/jgitflow-maven-plugin/src/it/projects/feature-finish-version-only-change/postbuild.groovy

https://bitbucket.org/atlassian/jgit-flow
Groovy | 20 lines | 16 code | 4 blank | 0 comment | 0 complexity | 5e6587ed7c9ac3a9108f1eae137459b3 MD5 | raw file
Possible License(s): Apache-2.0
  1. import com.atlassian.jgitflow.core.JGitFlow
  2. import com.atlassian.maven.plugins.jgitflow.it.FinishScriptHelper
  3. try
  4. {
  5. helper = new FinishScriptHelper(basedir, localRepositoryPath, context)
  6. flow = JGitFlow.getOrInit(basedir)
  7. flow.git().checkout().setName("master").call()
  8. helper.comparePomFiles("expected-master-pom.xml", "pom.xml")
  9. flow.git().checkout().setName("develop").call()
  10. helper.comparePomFiles("expected-develop-pom.xml", "pom.xml")
  11. }
  12. catch (Exception e)
  13. {
  14. System.err.println(e.getMessage())
  15. return false;
  16. }