You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`git.branch`| Represents the current branch name. Falls back to commit-id for detached HEAD. Note: When an user uses the `evaluateOnCommit` property to gather the branch for an arbitrary commit (really anything besides the default `HEAD`) this plugin will perform a `git branch --points-at` which might return a comma separated list of branch names that points to the specified commit. |
905
-
|`git.build.number.unique`| Represents a system wide unique build number (see notes below). |
906
-
|`git.build.host`| Represents the hostname where the properties have been generated. |
907
-
|`git.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. |
908
-
|`git.build.user.email`| Represents the git user eMail that is configured where the properties have been generated. |
909
-
|`git.build.user.name`| Represents the git user name that is configured where the properties have been generated. |
910
-
|`git.build.version`| Represents the project version of the current maven project. |
911
-
|`git.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. |
912
-
|`git.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. |
913
-
|`git.commit.id`| Represents the commit’s SHA-1 hash. Note this is exchangeable with the `git.commit.id.full` property. |
914
-
|`git.commit.id.abbrev`| Represents the abbreviated (shorten version) commit hash. |
915
-
|`git.commit.id.describe`| Represents an object a human readable name based on a the commit (provides `git describe` for the given commit`). |
916
-
|`git.commit.id.describe-short`| Represents the same value as `git.commit.id.describe` , just with the git hash part removed (the `g2414721` part from `git describe`). |
917
-
|`git.commit.message.full`| Represents the raw body (unwrapped subject and body) of the commit message (`git log -1 --pretty=format:%B`) |
918
-
|`git.commit.message.short`| Represents the subject of the commit message - may *not* be suitable for filenames (`git log -1 --pretty=format:%s`) |
919
-
|`git.commit.time`| Represents the (formatted) time stamp when the commit has been performed. |
920
-
|`git.commit.committer.time`| Represents the (formatted) time stamp when the commit has been performed. |
921
-
|`git.commit.author.time`| Represents the (formatted) time stamp when the commit has been originally performed. |
922
-
|`git.commit.user.email`| Represents the user eMail of the user who performed the commit. |
923
-
|`git.commit.user.name`| Represents the user name of the user who performed the commit. |
924
-
|`git.dirty`| A working tree is said to be "dirty" if it contains modifications which have not been committed to the current branch. |
925
-
|`git.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 a `git fetch` will be performed before retrieval. |
926
-
|`git.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 a `git fetch` will be performed before retrieval. |
927
-
|`git.remote.origin.url`| Represents the URL of the remote repository for the current git project. |
928
-
|`git.tags`| Represents a list of tags which contain the specified commit (`git tag --contains`). |
929
-
|`git.total.commit.count`| Represents the total count of all commits in the current repository (`git rev-list HEAD --count`). |
930
-
931
-
932
-
Note that all properties listed here depend on the configurable "namespace" prefix `<prefix>git</prefix>`.
933
-
This plugin may generate other properties in the format `${configured-prefix}.commit.id`, if this configuration is altered in your pom.
934
-
935
-
### Note on git.build.number variables
936
-
The `git.build.number` variables are available on some hosted CIs and can be used to identify the "number" of the build.
937
-
Refer to the table below to see which values are supported by which CIs.
0 commit comments