Closed rutchkiwi closed 10 years ago
I had the same problem with this plugin (I tried to use it with Travis-CI) and unfortunately I didn't solved it it.
The problem consist of two parts:
So in result we have two ways to fix it:
Thanks Nikolay!! That makes perfect sense.
In the end I opted to use a simpler approach, just setting the version in the gradle build file like so:
if (project.hasProperty('newVersion')) {
version = project.newVersion
logger.lifecycle("setting version to " + project.getVersion())
} else {
version = '0-SNAPSHOT'
}
and doing the git tagging manually.
I think this shouldn't be closed as the issue isn't resolved. I am seeing the same problem trying to use this plugin with travis-ci.
To me it looks as though travis just doesn't have git installed. Simple as that. I've wanted for some time now to move to jGit, but haven't yet had a chance to finish that. Take a look at the jgit branch and perhaps you might have time to assist in completing this migration?
Ok. As a workaround I just tried to configure travis to install Git before execution but it didn't make any difference. I'll take a look at the JGit branch when I get a chance to see if I can help. Thanks.
Hey!
This plugin works fine when running gradle locally, but when i try to run on our CI machine the build.gradle file can't be evaluated, and no gradle tasks at all works.
For example when running gradle tasks i get:
With --info & --debug (cut down to relevant parts) https://gist.githubusercontent.com/rutchkiwi/ac03d610bf48aea0abfb/raw/af6cfcd24018cd62d11a7bbe44f3da63eae554a0/relase-git-problem
Any ideas on how to fix this?