-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git.closest.tag values not set in Azure pipeline #633
Comments
If I run the same Maven command from my MacBook with the same revision checked out, the values are populated correctly |
Hi, thanks for creating this issue! Could you perhaps check if the problem is also present when using |
Unfortunately that doesn't seem to have made a difference. I used the following config: <plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>6.0.0</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<verbose>true</verbose>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<includeOnlyProperties>
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
<includeOnlyProperty>^git.tags$</includeOnlyProperty>
<includeOnlyProperty>^git.closest.tag.*$</includeOnlyProperty>
<includeOnlyProperty>^git.dirty$</includeOnlyProperty>
<includeOnlyProperty>^git.branch</includeOnlyProperty>
</includeOnlyProperties>
<commitIdGenerationMode>full</commitIdGenerationMode>
<useNativeGit>true</useNativeGit>
<gitDescribe>
<tags>true</tags>
</gitDescribe>
</configuration>
</plugin> and got the following logs (and corresponding blank properties in git.properties):
|
Thanks for trying, will need to investigate. |
Describe the bug (required)
I have configured a Maven build to include tags and git.closest.tag.* values in git.properties. The verbose log shows that tags are being collected but the git.closest.tag.name and git.closest.tag.commit.count properties are blank. The repository has two tags 0.0.0 and 0.0.1 and the main branch is currently 1 commit ahead of the 0.0.1 tag.
Tell us about your plugin configuration (required)
Tell us about the Plugin version used (required)
6.0.0
Tell us about the Maven version used (required)
Steps to Reproduce (required)
The Azure pipeline looks like the following:
Are there any stacktraces or any error messages? (required)
Is there a (public) project where this issue can be reproduced? (optional)
No response
Your Environment (optional)
I have provisioned a Linux runner based on Ubuntu 20.04 with Java and Maven installed using apt
Context (optional)
No response
The text was updated successfully, but these errors were encountered: