Skip to content
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

Problem win32 subversion 1.7 #39

Closed
leoincedo opened this issue Jun 3, 2013 · 7 comments
Closed

Problem win32 subversion 1.7 #39

leoincedo opened this issue Jun 3, 2013 · 7 comments

Comments

@leoincedo
Copy link

project is not problem

i was testing from svn 1.6 ( osx ) but problem is windows or subversion 1.7

plz.!!! i want to release plugin

[liongo.SF2-SEONGWOO-PC] → sh gradlew release

xxxx Poject <<<<<
0.7.4.1-GR-SNAPSHOT
:release
xxxx Poject <<<<<
0.7.4.1-GR-SNAPSHOT
:xxxxserver:initScmPlugin
:xxxxserver:checkCommitNeeded
!!WARNING!! You have 19 un-versioned files.
:xxxxserver:checkUpdateNeeded 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 ':checkUpdateNeeded'.

    Running "svn info svn://developer.xxxx.co.kr/svn/xx2/trunk/xxxxserver" produced an error: [svn: E670008: Unable to connect to a repository at URL 'svn://developer.xxxx.co.kr/svn/xx2/trunk/xxxxserver'
    svn: E670008: Unknown hostname 'developer.xxxx.co.kr']

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 8.721 secs

[liongo.SF2-SEONGWOO-PC] → svn info svn://developer.xxxxx.co.kr/svn/xx2/trunk/xxxxserver
Path: xxxxserver
URL: svn://developer.xxxx.co.kr/svn/xx2/trunk/xxxxserver
Repository Root: svn://developer.xxxxx.co.kr/svn/xx2
Repository UUID: e7335162-918b-11e0-b175-019f8cb6028d
Revision: 3418
Node Kind: directory
Last Changed Author: liongo
Last Changed Rev: 3418
Last Changed Date: 2013-06-03 20:12:59 +0900 (, 03 6 2013)

@townsfolk
Copy link
Contributor

Are you able to connect to your SVN server from your windows machine? The error above states that svn itself can't connect to your SVN server "Unknown hostname 'developer.xxxx.co.kr'".

Can you run something like svn ls svn://developer.xxxxx.co.kr/svn/xx2/trunk/xxxxserver from the command line? This plugin just calls SVN commands through the console, so if you can execute the commands yourself via command line, then the plugin should work, and visa versa - If you can't execute the commands manually via command line, the plugin won't work.

Unfortunately, I don't have access to a windows machine so I can't test this.

@Vlucrecia
Copy link

Hi
I am also getting the same error:

Running "svn status -q -u"
Running "svn status -q -u": [][]
Running "svn info https://xxxx/svn/sample/trunk"
Running "svn info https://xxxx/svn/sample/trunk": [][svn: E731001:
Unable to connect to a repository at URL 'https://xxxx/svn/sample/trunk'
svn: E731001: No such host is known.
]
:ss:checkUpdateNeeded FAILED
:release FAILED
Release process failed, reverting back any changes made by Release Plugin.

Running [svn, revert, gradle.properties]
Running [svn, revert, gradle.properties]: [][]

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':checkUpdateNeeded'.

    Running "svn info https://xxxx/svn/sample/trunk" produced an erro
    r: [svn: E731001: Unable to connect to a repository at URL 'https://xxxx/svn/sample/trunk'
    svn: E731001: No such host is known.]

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to
    get more log output.

BUILD FAILED

Total time: 28.767 secs

C:\work\POC\GrailsGradle\sample4\ss>svn info https://xxxx/svn/sample/trunk
S/trunk
Path: trunk
URL: https://xxxx/svn/sample/trunk
Relative URL: ^/trunk
Repository Root: https://xxxx/svn/sample
Repository UUID:
Revision: 17
Node Kind: directory
Last Changed Author: VisualSVN Server
Last Changed Rev: 17
Last Changed Date: 2013-06-28 15:40:26 +0100 (Fri, 28 Jun 2013)

I am working on windows 7. Please let me know.
Thanks
Smurf

@townsfolk
Copy link
Contributor

Just so I'm clear, is that output the exact output? It's not actually reporting the host as xxxx correct? Just want to make sure the SVN command line client isn't actually replacing that value.

@Vlucrecia
Copy link

I have replaced the server details as xxx. I tried using svn info 'url and it worked fine from command prompt.
Is this an issue mentioned in issue #34 [bug] ? Or this plugin works for svn and git?

Thanks
Smurf

@townsfolk
Copy link
Contributor

@leoincedo Were you able to solve this issue? There is another user who seems to be having the same issue. They are using SVN 1.8.0. I don't have a Windows machine to test this on, so if you have any insight that may help, please share it.

@thokuest
Copy link
Contributor

thokuest commented Dec 2, 2013

@townsfolk This issue is caused by release.PluginHelper.exec(String...) ignoring the default process environment properties. The processes environment contains only the properties which are given as method parameters.

String exec(boolean failOnStderr = true, Map env = [:], File directory = null, String... commands) {
    ...
    def process = (env || directory) ?
            (commands as List).execute(env.collect { "$it.key=$it.value" } as String[], directory) :
            (commands as List).execute()
    ...
}

At least on Windows this results in the mentioned error message.

thokuest added a commit to thokuest/gradle-release that referenced this issue Dec 3, 2013
Zlate87 added a commit to Zlate87/gradle-release that referenced this issue Jun 20, 2014
townsfolk added a commit that referenced this issue Jan 25, 2015
Fix for issue #39 - SVN release on windows
@danez
Copy link
Contributor

danez commented Jan 29, 2015

Fixed by #68

@danez danez closed this as completed Jan 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants