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
I have a project that uses this plugin. When I upgraded from version 2.7.0 to 2.8.0, the gradle build fails immediately in cases where the source code does not have a ./.git directory, e.g. when someone "downloads" from github rather than cloning the repository. This is also relevant for AWS CodeBuild pipelines, since the code is downloaded rather than cloned in those cases.
It appears that this issue was introduced in this commit: 4e43ac3, specifically this line.
Here is some sample output:
$ gradle clean
> Configure project :
Running [git, branch, --no-color] produced an error: [fatal: not a git repository (or any of the parent directories): .git]
The underlying exception is Caused by: org.gradle.api.GradleException: Error, this repository is empty.
This occurs with every gradle task (including clean as shown above), not just a release-related task. I wouldn't mind if this failed for the release task, but failing like this on build-related tasks is a bit of a show-stopper.
I have a project that uses this plugin. When I upgraded from version 2.7.0 to 2.8.0, the gradle build fails immediately in cases where the source code does not have a
./.git
directory, e.g. when someone "downloads" from github rather than cloning the repository. This is also relevant for AWS CodeBuild pipelines, since the code is downloaded rather than cloned in those cases.It appears that this issue was introduced in this commit: 4e43ac3, specifically this line.
Here is some sample output:
The underlying exception is
Caused by: org.gradle.api.GradleException: Error, this repository is empty.
This occurs with every gradle task (including
clean
as shown above), not just a release-related task. I wouldn't mind if this failed for therelease
task, but failing like this on build-related tasks is a bit of a show-stopper.This issue is very similar to #286
The text was updated successfully, but these errors were encountered: