Skip to content

Bamboo build number do not use the right case #410

@nicolasmingo

Description

@nicolasmingo

Describe the bug

When I use git-commit-id plugin in my maven project I want to have git.build.number inside git.properties, but it does not work on Bamboo.

Steps to Reproduce

<plugin>
                <groupId>pl.project13.maven</groupId>
                <artifactId>git-commit-id-plugin</artifactId>
                <version>2.2.6</version>
                <executions>
                    <execution>
                        <id>get-the-git-infos</id>
                        <goals>
                            <goal>revision</goal>
                        </goals>
                    </execution>

                </executions>
                <configuration>
                    <generateGitPropertiesFile>
                        true
                    </generateGitPropertiesFile>
                    <generateGitPropertiesFilename>
                        ${project.build.outputDirectory}/git.properties
                    </generateGitPropertiesFilename>
                </configuration>
</plugin>

Actual behavior

git.build.number is missing

Expected behavior

git.build.number=number

Additional context

I've reproduced the bug in my IDE by injecting ENV variables like in bamboo.

If i put env-vars like bamboo (with the exact case)
bamboo_buildKey=MY_KEY
bamboo_buildNumber=18
Then it does not work

If i put env-vars like bamboo (but in uppercase)
BAMBOO_BUILDKEY=MY_KEY
BAMBOO_BUILDNUMBER=18
Then it works

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions