Compiling SVNKit for subversion-plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling SVNKit for subversion-plugin

Kenny Ayers
Hi,

  I'm attempting to resolve this issue: https://issues.jenkins-ci.org/browse/JENKINS-14551

Bug behavior: when a workspace is updated, the contents of an SVN versioned file are doubled if an SVN mv operation was executed on the file.

Reproduction steps: (this is shown in the link above, but I'll put in a short version here).  Add a file to SVN.  Update your Jenkins workspace.  Rename the file via svn mv.  Update your Jenkins workspace.  The file contents are now duplicated.

Debugging steps: After adding some debug statements into subversion-plugin, it appears that the bug may be in SVNKit itself.  To determine this, I modified hudson.scm.subversion.UpdateUpdater by adding a loop to print the contents of each file after the SVN checkout is completed.  Immediately after the doUpdate() function which is responsible for updating a checkout is called, I inspect the file contents to find they are corrupted.

I'd like help with: compiling SVNKit so that I may do additional debugging.  I've attempted to compile SVNKit using the steps in their wiki, but it must be out of date.  The steps are:

  1. svn co http://svn.svnkit.com/repos/svnkit/tags/1.7.6/ svnkit
  2. ant deploy
What I get is:

Buildfile: build.xml does not exist!
Build failed

  I looked in the subversion-plugin repo and didn't find any information on this.  So my question is - how is SVNKit compiled for subversion-plugin?

Thank you,

Kenny


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Aw: Compiling SVNKit for subversion-plugin

Christoph Kutzinski
Jenkins uses a fork of the SVNkit: https://github.com/jenkinsci/svnkit
Maybe you have more luck building that one.
 
Gesendet: Dienstag, 23. April 2013 um 04:21 Uhr
Von: "Kenny Ayers" <[hidden email]>
An: [hidden email]
Betreff: Compiling SVNKit for subversion-plugin
Hi,
 
  I'm attempting to resolve this issue: https://issues.jenkins-ci.org/browse/JENKINS-14551
 
Bug behavior: when a workspace is updated, the contents of an SVN versioned file are doubled if an SVN mv operation was executed on the file.
 
Reproduction steps: (this is shown in the link above, but I'll put in a short version here).  Add a file to SVN.  Update your Jenkins workspace.  Rename the file via svn mv.  Update your Jenkins workspace.  The file contents are now duplicated.
 
Debugging steps: After adding some debug statements into subversion-plugin, it appears that the bug may be in SVNKit itself.  To determine this, I modified hudson.scm.subversion.UpdateUpdater by adding a loop to print the contents of each file after the SVN checkout is completed.  Immediately after the doUpdate() function which is responsible for updating a checkout is called, I inspect the file contents to find they are corrupted.
 
I'd like help with: compiling SVNKit so that I may do additional debugging.  I've attempted to compile SVNKit using the steps in their wiki, but it must be out of date.  The steps are:
 
  1. svn co http://svn.svnkit.com/repos/svnkit/tags/1.7.6/ svnkit
  2. ant deploy
What I get is:
 
Buildfile: build.xml does not exist!
Build failed
 
  I looked in the subversion-plugin repo and didn't find any information on this.  So my question is - how is SVNKit compiled for subversion-plugin?
 
Thank you,
 
Kenny
 
 

 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Compiling SVNKit for subversion-plugin

Kenny Ayers
Kutzi,

  Thank you very much for the help.  Is there a preferred build command?  I didn't see build information in the README.txt of the fork.  I tried:

./gradlew clean build -x test -x signMaven

Which returned successfully, but I figured I should be using maven instead of gradle:

mvn clean install -Dmaven.test.skip -Djarsigner.skip=true

...resulted in a build failure message (full log attached as maven.build.out):

[exec] FAILURE: Build failed with an exception. [exec] * What went wrong: [exec] Execution failed for task ':svnkit:signMaven'. [exec] > Cannot perform signing task ':svnkit:signMaven' because it has no configured signatory [exec] * Try: [exec] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. [exec] BUILD FAILED

If I disable the jar signing step in pom.xml by changing the exec command to "./gradlew clean assemble -x signMaven", I get the following result (attached as maven.build.unsigned.out):

[ERROR] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-install) on project svnkit: Failed to install artifact org.jenkins-ci.svnkit:svnkit:jar:sources:1.7.6-jenkins-1: /mnt/src/cine/jenkins/svnkit/svnkit/build/libs/svnkit-1.7.6-jenkins-1-sources.jar (No such file or directory) -> [Help 1] 
  So is the gradle build command sufficient to get what I need?  I see that the gradle command created this jar:

./svnkit-distribution/build/all/svnkit-1.7.6-jenkins-1/lib/svnkit-1.7.6-jenkins-1.jar

  Thoughts?

Thank you,

Kenny

On Tuesday, April 23, 2013 2:55:13 AM UTC-7, kutzi wrote:
Jenkins uses a fork of the SVNkit: https://github.com/jenkinsci/svnkit
Maybe you have more luck building that one.
 
Gesendet: Dienstag, 23. April 2013 um 04:21 Uhr
Von: "Kenny Ayers" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="bJYGYZ5m-acJ">theother...@...>
An: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="bJYGYZ5m-acJ">jenkin...@googlegroups.com
Betreff: Compiling SVNKit for subversion-plugin
Hi,
 
  I'm attempting to resolve this issue: https://issues.jenkins-ci.org/browse/JENKINS-14551
 
Bug behavior: when a workspace is updated, the contents of an SVN versioned file are doubled if an SVN mv operation was executed on the file.
 
Reproduction steps: (this is shown in the link above, but I'll put in a short version here).  Add a file to SVN.  Update your Jenkins workspace.  Rename the file via svn mv.  Update your Jenkins workspace.  The file contents are now duplicated.
 
Debugging steps: After adding some debug statements into subversion-plugin, it appears that the bug may be in SVNKit itself.  To determine this, I modified hudson.scm.subversion.UpdateUpdater by adding a loop to print the contents of each file after the SVN checkout is completed.  Immediately after the doUpdate() function which is responsible for updating a checkout is called, I inspect the file contents to find they are corrupted.
 
I'd like help with: compiling SVNKit so that I may do additional debugging.  I've attempted to compile SVNKit using the steps in their wiki, but it must be out of date.  The steps are:
 
  1. svn co http://svn.svnkit.com/repos/svnkit/tags/1.7.6/ svnkit
  2. ant deploy
What I get is:
 
Buildfile: build.xml does not exist!
Build failed
 
  I looked in the subversion-plugin repo and didn't find any information on this.  So my question is - how is SVNKit compiled for subversion-plugin?
 
Thank you,
 
Kenny
 
 

 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="bJYGYZ5m-acJ">jenkinsci-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

maven.build.out (725K) Download Attachment
maven.build.unsigned.out (733K) Download Attachment