ru-fix / gradle-release-plugin

gradle-release-plugin automates release procedure for gradle based projects. It automatically creates release branches, update project version in gradle.properties file and commit this update in dynamically created tag with auto incremented version.
18 stars 2 forks source link

Access denied on createRelease task #4

Open ebcFlagman opened 5 years ago

ebcFlagman commented 5 years ago

I've played around with the plugin and so i created a Release-Branch 1.0 and made some changes on it. Now when I execute the createRelease task I became the following exception: `PS C:\git\gradle-release> gradle createRelease --stacktrace Starting a Gradle Daemon, 2 incompatible and 14 stopped Daemons could not be reused, use --status for details

Task :createRelease Git credentials are supplied for patrick.wachsmuth. Found git repository at: C:\git\gradle-release.git Fetching tags Pushing on behalf of ... Using transport: TransportHttp Tags fetched Checking branch release/1.0 matches release branch naming pattern Creating release for version 1.0.0 Creating branch temp_release_release/1.0.0 and checkout Updating file C:\git\gradle-release.\gradle.properties to version 1.0.0 Committing files.

Task :createRelease FAILED

FAILURE: Build failed with an exception.

After that exception I've got a new Branch temp_release_release/1.0.0 and a uncommited gradle.properties.

Any ideas about my problem?

swarmshine commented 4 years ago

Hello, @ebcFlagman, thank you for the feedback. Seems like the problem occurred because two git clients access local git repository file system in the same time. gradle-release-plugin uses jgit library in order to commit changes gradle.properties file into local repository. Looks like in the same time IDE or other version tool locked file in git repository file system. And that lead to such behavior. In latest gradle-release-plugin v1.3.16 we updated to new 5.6.1.202002131546-r version of JGit.

We spot that you are using Windows OS. On Windows OS with latest version of plugin 1.3.16 we do not experience such problem. We tried to keep open Eclipse IDE and Intellij Idea IDE.

Could you please give it another try with new version of plugin? If same issue occurred again - let us now. Also it would be grate to hear what software you are using to work with git repository, is it some kind of IDE or other specialized application?