Changes by [unknown] in a Git plan

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

When a build is triggered by Repository Polling, it shows the message "Changes by [unknown]"

The following appears in the atlassian-bamboo.log

2019-01-18 19:41:01,040 ERROR [9-BAM::PlanExec:pool-15-thread-3] [GitChangeDetector] : Failed to extract changesets, will return a stub changeset.
java.lang.UnsupportedOperationException: JGit implementation does not support Git LFS repositories, please use native Git or mark your repository configuration as non-LFS
	at com.atlassian.bamboo.plugins.git.JGitOperationHelper.fetch(JGitOperationHelper.java:283)
	at com.atlassian.bamboo.plugins.git.JGitOperationHelper.fetch(JGitOperationHelper.java:277)
	at com.atlassian.bamboo.plugins.git.v2.GitChangeDetector.lambda$fetchAndExtractChanges$4(GitChangeDetector.java:233)
	at io.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:284)
	at com.atlassian.bamboo.plugins.git.v2.GitChangeDetector.fetchAndExtractChanges(GitChangeDetector.java:217)
	at com.atlassian.bamboo.plugins.git.v2.GitChangeDetector.collectChanges(GitChangeDetector.java:190)
	at com.atlassian.bamboo.plugins.git.v2.GitChangeDetector.collectChangesSinceRevision(GitChangeDetector.java:71)
	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectionChangesWithRetry(DefaultChangeDetectionManager.java:580)
	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.lambda$createBuildRepositoryChanges$2(DefaultChangeDetectionManager.java:479)
	at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)
	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildInternal(DefaultChangeDetectionManager.java:440)

Diagnosis

Check if the option Enable LFS support is enabled at Repository Settings > Advanced options.

Check if there is any Git capability configured at Administration > Build Resources > Server capabilities.

Cause

Git LFS option is enabled in that repository in Bamboo but JGit does not support it.

Resolution

  1. Install Git client in the machine hosting Bamboo and configure it at Administration > Build Resources > Server capabilities.
    OR
  2. Disable the option Enable LFS support at Administration > Build Resources > Linked repositories > reponame > Advanced options or Plan Configuration > Repositories > reponame > Advanced options.


DescriptionChanges by [unknown] in a Git plan
ProductBamboo
Last modified on Jan 18, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.