Base SCM Plugin for gathering information or performing actions
Groovy Shell
Clone or download
Latest commit 4724d61 Jun 13, 2018

README.md

gradle-scm-plugin

Support Status Build Status Coverage Status Gitter Apache 2.0

Base SCM Plugin for gathering information and performing actions

Actions

  • Boolean switchToBranch() - Switch to branch, create if needed
  • Boolean updateFromRepository() - Get latest changes from a remote repository.
  • Boolean commit() - Commit changes. If this is a distributed SCM it should also push the changes to the remote.
  • Boolean tag()- Tag a commit. If this is a distributed SCM it should also push the tag to the remote.
  • Boolean preChanges() - Allow an SCM provider the chance to do any actions it needs to before another plugin edits a file. For many SCM providers this will be a no-op.
  • Boolean undoChanges() - Undo all changes to the repository.