Closed ip2k closed 8 years ago
I am seeing the same thing. Affects a lot of our jobs.
The same thing applies for user names. We encounter problems there at the moment due to GIT creating users from Commit Messages. So i think it is basically a thing with wrong URI encoding in SCM.
I'm seeing this as well. Using SCM Sync Configuration Plugin 0.0.9 and Jenkins version 1.642.3.
Despite this bug, this plugin is rad! Thanks!
We're being affected by this bug as well.
We get this error when it fails:
Any hope for a fix?
@ip2k @Zitrax @foundatron, how do you recover from this?
I came across this issue too and found out what the problem is. The error is in the dependency maven-scm-provider-gitexe-1.9.1.jar
Illegal character in path at index 0: "jobs
says it all. The quote at char 0 breaks the whole thing. Meanwhile this has been fixed, but sadly no current release is up (even version 1.9.4 still has the error). I cloned (git://git.apache.org/maven-scm.git), checked out tag 1.9.4 and fixed the error in file GitStatusConsumer.java Then recompiled this lib and pushed it into the plugin scm-sync-configuration.hpi This solved the problem for me.
Attached you find the patch and the precompiled jar, which can be replaced into the hpi file. Also for simplicity I attached the fully patched 0.0.9 of this plugin.
@christau, great work, many thanks!
I'll try it out tonight.
I have the same error. Job has %2F
in name (slash from branch name - multibranch pipeline).
I create catalogue from error in checkoutConfiguration and manually commit it.
It resolves this problem, but I have to check it with new branches.
@christau I sent this request to the Maven developers. Any idea how to push it along?
Issue has been fixed in this Commit: https://github.com/apache/maven-scm/commit/68eecff6c782e18eb59840205c55d3d1631aa256
Fix should take part in upcoming release of maven-scm. Please update dependency in next release of scm-sync-configuration-plugin.
@jarmoni do you know when the release is happening? Last I saw was this: http://www.mail-archive.com/dev@maven.apache.org/msg109252.html
@rodrigc No I haven't. I'm not related with maven-scm-team, just saw that issue has been fixed on Friday. I hope it won't take too long. Self-patched plugins in production-environment.....no good!
@christau Thanks for identifying the source of the problem. maven-scm-team finally released a new maven-scm-provider-gitexe 1.9.5 plugin. I updated the pom.xml here: https://github.com/jenkinsci/scm-sync-configuration-plugin/commit/63a7401520fcb7d65bacbdd35d8ff6bcb7bd1d80
In my testing, this seems to work. Can you build the plugin and verify that jobs with spaces in their names can now be backed up? I will rebuild the plugin.
@tomaswolf You previously provided this patch https://github.com/jenkinsci/scm-sync-configuration-plugin/commit/2f59c9d08f62e0479b7b6a553967275002dec259 which works around the fact that maven-scm-provider-gitexe had this bug: https://issues.apache.org/jira/browse/SCM-772 How does this fix affect the patch you provided? Is it still needed?
@rodrigc, I just built a new HPI and i'm able to create and delete jobs with spaces in the name.
@mterzo thanks for the feedback. Just to confirm, before the latest patch for SCM-772, were you unable to create/delete jobs with spaces in the name?
Yeah just checked out master and had no problem.
Hopefully https://github.com/jenkinsci/scm-sync-configuration-plugin/commit/a739a54d0c6d65c500245a46b0861cd6f1ba1cbf should fix the problem with Git
Looks like an exception handling URIs. The job name in this case is
ATS Testing
Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 0: "jobs/ATS%20Testing/config.xml"