PageRenderTime 42ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/jgitflow-maven-plugin/src/it/projects/release-finish-added-files-no-origin/postbuild.groovy

https://bitbucket.org/atlassian/jgit-flow
Groovy | 24 lines | 19 code | 5 blank | 0 comment | 0 complexity | 4d8644c854897df5bde2f2db8d48ea10 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. import static org.junit.Assert.assertTrue
  4. try
  5. {
  6. helper = new FinishScriptHelper(basedir, localRepositoryPath, context)
  7. flow = JGitFlow.getOrInit(basedir)
  8. flow.git().checkout().setName("master").call()
  9. helper.comparePomFiles("expected-master-pom.xml", "pom.xml")
  10. flow.git().checkout().setName("develop").call()
  11. File junkFile = new File(basedir,"junk.txt")
  12. assertTrue(junkFile.exists())
  13. helper.comparePomFiles("expected-develop-pom.xml", "pom.xml")
  14. }
  15. catch (Exception e)
  16. {
  17. System.err.println(e.getMessage())
  18. return false;
  19. }