-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue in gradle-release #43
Comments
Hi ][]
FAILURE: Build failed with an exception.
BUILD FAILED Total time: 15.23 secs |
To address the original problem, it says that you have 7 uncommitted files. Meaning your working copy has modifications that aren't on the server, so the plugin by default won't let you do a release. You can avoid this by setting the I'll address the second issue in the other ticket. |
So the second issue is a bug, as mentioned in #34? If so, can you please let me know, when it will be released? |
#34 is a different issue, the problem you're describing is more like #39. This plugin should definitely work for SVN and Git. I have a test project in SVN and it works fine in that project, but I'm on a mac. Unfortunately, I do not have access to a windows machine so I can't test this issue, or even hazard a guess as to why it's not working on that environment, and so cannot give an estimate on when it'll be fixed. Do you use a gradle wrapper (ie. |
No. i do not use graddle wrapper. I am using "org.grails:grails-gradle-plugin:2.0.0-SNAPSHOT". I tried this in windows 7. not cygwin. Can you please let me know, how to fix that. Thanks |
The grails plugin shouldn't be affecting this plugin. The only thing I can think of is subversion itself. What version of subversion are you using? I'm currently running 1.6.7, the other user who complained of the same issue you're having said they were running 1.7? Perhaps you could try downgrading your SVN to 1.6? |
I just upgraded my own SVN:
And ran the release task against my test svn project: As you can see I'm not able to reproduce this issue. There must be something with SVN 1.7 on Windows. Unfortunately, I am unable to help any further here. I don't have a windows environment to test this on. |
Do you have the hostname as an entry in your hosts file? It's definitely saying that SVN is having troubles accessing your svn domain. I did some googles and it doesn't seem to be a problem with Java accessing svn over the command-line. I wonder if it's something similar to this problem: |
But, in the command prompt, when i tried the below. it worked fine. also, i have tried with the ip address. svn info https://xxxx/svn/yyy/branches" |
But,i will try by adding an entry in the host file and let you know |
Hi I tried by changing the hosts file, but it does not work. I am using svn version 1.8.0 (r1490375). can you please help me on this. |
I'm sorry, I wish I could help more, but this is working for me on my 2 mac environments. I don't have a windows environment so I can't test this out. I don't know what the differences between the setups of Mac SVN vs. Windows SVN. |
Hi should i add the below lines in build.gradle?
I have just added below lines in build.gradle Also, can you please let me know, where i have to give the username and password for svn? |
You don't need the first part, that was used in my test project to test FTP uploading of jar files. You don't need that, unless you want to upload your jar files via FTP to some server. :) The second part is the same thing that's found in the install (or apply) script: Which is what you apply in your build.gradle. As for your last question, I don't know. When I run it myself I'm prompted for the svn username/password during the release task. I think there's a way to store username/password with SVN, but you'll have to consult their documentation for that. Did you get the issue with the unknown host resolved? |
Hi Thanks |
You should be able to do something like that by overriding the But you'll have to do the next version determination and update yourself. If you look at the You should be able to override the task like so:
That's obviously not complete, and I haven't actually tried it, but it should get you started. |
I have faced the same issue. |
Hi
I am working on the gradle release plugin https://github.com/townsfolk/gradle-release on the multi module project. I am able to do a svn ls url from command prompt. But this does not work.
I have mentioned the below in the main build.gradle
buildscript {
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/groups/public"}
}
dependencies {
classpath 'com.github.townsfolk:gradle-release:1.2'
}
}
apply plugin: 'release'
Have i missed giving the username and password for svn ?? Can you please let me know.
I tried to do a gradle release , but i am getting the following error:
:release
:svnPlatform:initScmPlugin
:svnPlatform:checkCommitNeeded FAILED
:release FAILED
Release process failed, reverting back any changes made by Release Plugin.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':checkCommitNeeded'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debu o
ption to get more log output.
BUILD FAILED
Thanks
Smurf
The text was updated successfully, but these errors were encountered: