Package pl.project13.core
Class GitCommitPropertyConstant
java.lang.Object
pl.project13.core.GitCommitPropertyConstant
A class that represents all properties that may be generated by the plugin and exposed to maven.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRepresents the current branch name.static final StringRepresents the git user eMail that is configured where the properties have been generated.static final StringRepresents the git user name that is configured where the properties have been generated.static final StringRepresents the hostname where the properties have been generated.static final StringThe git.build.number* variables are available on some hosted CIs and can be used to identify the "number" of the build.static final StringThe git.build.number* variables are available on some hosted CIs and can be used to identify the "number" of the build.static final StringRepresents the (formatted) timestamp when the last build was executed.static final StringRepresents the project version of the current project.static final StringRepresents the number of commits to the closest available tag.static final StringRepresents the name of the closest available tag.static final StringRepresents the user eMail of the user who performed the commit.static final StringRepresents the user name of the user who performed the commit.static final StringRepresents the (formatted) time stamp when the commit has been originally performed.static final StringRepresents the (formatted) time stamp when the commit has been performed.static final StringRepresents an object a human readable name based on a the commit (providesgit describefor the given commit).static final StringRepresents the abbreviated (shorten version) commit hash.static final StringRepresents the commit’s SHA-1 hash.static final StringRepresents the commit’s SHA-1 hash.static final StringRepresents the raw body (unwrapped subject and body) of the commit message.static final StringRepresents the subject of the commit message - may not be suitable for filenames.static final StringRepresents the same value as git.commit.id.describe, just with the git hash part removed (theg2414721part fromgit describe).static final StringRepresents the (formatted) time stamp when the commit has been performed.static final StringA working tree is said to be "dirty" if it contains modifications which have not been committed to the current branch.static final StringRepresents the count of commits that your local branch is ahead in perspective to the remote branch (usually the case when your local branch has committed changes that are not pushed yet to the remote branch).static final StringRepresents the count of commits that your local branch is behind in perspective to the remote branch (usually the case when there are commits in the remote branch that are not yet integrated into your local branch).static final StringRepresents the URL of the remote repository for the current git project.static final StringRepresents the tag on the current commit.static final StringRepresents a list of tags which contain the specified commit.static final StringRepresents the total count of all commits in the current repository. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BRANCH
Represents the current branch name. Falls back to commit-id for detached HEAD. Note: When an user uses theevaluateOnCommitproperty to gather the branch for an arbitrary commit (really anything besides the defaultHEAD) this plugin will perform agit branch --points-atwhich might return a comma separated list of branch names that points to the specified commit.- See Also:
-
LOCAL_BRANCH_AHEAD
Represents the count of commits that your local branch is ahead in perspective to the remote branch (usually the case when your local branch has committed changes that are not pushed yet to the remote branch).Note: To obtain the right value for this property this plugin should operate in online mode (
<offline>false</offline>) so agit fetchwill be performed before retrieval.- See Also:
-
LOCAL_BRANCH_BEHIND
Represents the count of commits that your local branch is behind in perspective to the remote branch (usually the case when there are commits in the remote branch that are not yet integrated into your local branch).Note: To obtain the right value for this property this plugin should operate in online mode (
<offline>false</offline>) so agit fetchwill be performed before retrieval.- See Also:
-
DIRTY
A working tree is said to be "dirty" if it contains modifications which have not been committed to the current branch.- See Also:
-
COMMIT_ID_FLAT
Represents the commit’s SHA-1 hash. Note this is exchangeable with the git.commit.id.full property and might not be exposed. SeecommitIdGenerationMode.- See Also:
-
COMMIT_ID_FULL
Represents the commit’s SHA-1 hash. Note this is exchangeable with the git.commit.id property and might not be exposed. SeecommitIdGenerationMode.- See Also:
-
COMMIT_ID_ABBREV
Represents the abbreviated (shorten version) commit hash.- See Also:
-
COMMIT_DESCRIBE
Represents an object a human readable name based on a the commit (providesgit describefor the given commit).- See Also:
-
COMMIT_SHORT_DESCRIBE
Represents the same value as git.commit.id.describe, just with the git hash part removed (theg2414721part fromgit describe).- See Also:
-
BUILD_AUTHOR_NAME
Represents the git user name that is configured where the properties have been generated.- See Also:
-
BUILD_AUTHOR_EMAIL
Represents the git user eMail that is configured where the properties have been generated.- See Also:
-
BUILD_TIME
Represents the (formatted) timestamp when the last build was executed. If written to the git.properties file represents the latest build time when that file was written / updated.- See Also:
-
BUILD_VERSION
Represents the project version of the current project.- See Also:
-
BUILD_HOST
Represents the hostname where the properties have been generated.- See Also:
-
BUILD_NUMBER
The git.build.number* variables are available on some hosted CIs and can be used to identify the "number" of the build. This represents a project specific build number.Currently supported CIs:
- AWS CodeBuild
- Azure DevOps
- Bamboo
- Bitbucket Pipelines
- GitHub Actions
- Gitlab CI (Gitlab >8.10 & Gitlab CI >0.5)
- Hudson/Jenkins
- TeamCity
- Travis
- See Also:
-
BUILD_NUMBER_UNIQUE
The git.build.number* variables are available on some hosted CIs and can be used to identify the "number" of the build. This represents a system wide unique build number.Currently supported CIs:
- AWS CodeBuild
- Gitlab CI (Gitlab >11.0)
- GitHub Actions
- TeamCity
- Travis
- See Also:
-
COMMIT_AUTHOR_NAME
Represents the user name of the user who performed the commit.- See Also:
-
COMMIT_AUTHOR_EMAIL
Represents the user eMail of the user who performed the commit.- See Also:
-
COMMIT_MESSAGE_FULL
Represents the raw body (unwrapped subject and body) of the commit message. Similar to runninggit log -1 --pretty=format:%B- See Also:
-
COMMIT_MESSAGE_SHORT
Represents the subject of the commit message - may not be suitable for filenames. Similar to runninggit log -1 --pretty=format:%s- See Also:
-
COMMIT_TIME
Represents the (formatted) time stamp when the commit has been performed.- See Also:
-
COMMIT_AUTHOR_TIME
Represents the (formatted) time stamp when the commit has been originally performed.- See Also:
-
COMMIT_COMMITTER_TIME
Represents the (formatted) time stamp when the commit has been performed.- See Also:
-
REMOTE_ORIGIN_URL
Represents the URL of the remote repository for the current git project.- See Also:
-
TAGS
Represents a list of tags which contain the specified commit. Similar to runninggit tag --contains- See Also:
-
CLOSEST_TAG_NAME
Represents the name of the closest available tag. The closest tag may depend on your git describe config that may or may not take lightweight tags into consideration.- See Also:
-
TAG
Represents the tag on the current commit. Similar to runninggit tag --points-at HEAD- See Also:
-
CLOSEST_TAG_COMMIT_COUNT
Represents the number of commits to the closest available tag. The closest tag may depend on your git describe config that may or may not take lightweight tags into consideration.- See Also:
-
TOTAL_COMMIT_COUNT
Represents the total count of all commits in the current repository. Similar to runninggit rev-list HEAD --count- See Also:
-
-
Constructor Details
-
GitCommitPropertyConstant
public GitCommitPropertyConstant()
-