Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Gradle build fails when trying to retrieve git properties

Using a private repo with "Fetch whole repository" enable.

It's a java/gradle project that uses this pluging to retrieve repo/branch information

It throws the following exception

16-Jun-2020 16:12:30 Execution failed for task ':generateGitProperties'.
16-Jun-2020 16:12:30 > org.eclipse.jgit.errors.MissingObjectException: Missing unknown ....2b49aa19472cec0750ba8

It works ok locally on my computer.


1 answer

The same problem. On Bamboo CI, "com.gorylenko.gradle-git-properties"  plugin can retrieve git branch name, but it fails on "", "git.commit.time", etc.. (from Bitbucket repository). Running on a local computer (Mac) all repo info retrieved OK.

The only thing I noticed - that plugin can not retrieve "" (not failed, just no value in results) before I open PR from branch on Bitbucket, but after creating PR all info are available.

As a temporary workaround I use Bamboo environment variables in conjunction with SpringBoot's buildInfo() plugin for Gradle:

springBoot {
buildInfo {
properties {
additional = [
'buildNumber': java.util.Optional.ofNullable(System.getenv("bamboo_buildNumber")).orElse("[not available]"),
'gitCommitId': java.util.Optional.ofNullable(System.getenv("bamboo_planRepository_revision")).orElse("[not available]"),
'gitBranch': java.util.Optional.ofNullable(System.getenv("bamboo_planRepository_branchName")).orElse("[not available]")


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events