Git handler for a project in a traditional Git repository
| Fields inherited from class | Fields |
|---|---|
class AbstractScmHandler |
env, logger, project |
| Constructor and description |
|---|
GitHandler
(Project project, java.util.Map<java.lang.String, java.lang.String> environment) |
| Type | Name and description |
|---|---|
java.lang.String |
annotatedVersion(java.lang.String baseVersion)return an annotated version with the CI and Git metadata added |
static AbstractScmHandler |
build(Project project, java.util.Map<java.lang.String, java.lang.String> env) |
protected java.io.File |
findGitRoot(java.io.File current)Locate a directory, starting with our current working directory, which has a .git/ subdirectory |
java.lang.String |
getBuildNumberFromCI()Return the build number present in the environment as defined by the CI system. |
protected Grgit |
getGit()Return an Grgit object for internal use |
protected java.io.File |
getGitDirFor(java.lang.String absolutePath) |
java.lang.String |
getRevision() |
boolean |
isAvailable() |
| Methods inherited from class | Name |
|---|---|
class AbstractScmHandler |
annotatedVersion, build, getEnvironment, getRevision, isAvailable |
return an annotated version with the CI and Git metadata added
Locate a directory, starting with our current working directory, which has a .git/ subdirectory
currentDirectory - A string representing a relative or absolute pathReturn the build number present in the environment as defined by the CI system. This supports BUILD_NUMBER (Jenkins) and TRAVIS_BUILD_NUMBER (Travis CI)
Return an Grgit object for internal use