Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-24686

scm-sync-configuration fails if job name contains whitespace

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Labels:
    • Environment:
      Debian Wheezy
      Jenkins runs in standalone mode
      Oracle Java 7
    • Similar Issues:

      Description

      scm-sync-configuration plugin is configured to sync to a Git repository. If a job contains a whitespace in its name, then the plugin fails to commit the configuration of that job.

      Sep 11, 2014 11:21:19 AM FINE hudson.plugins.scm_sync_configuration.SCMManipulator
      Checking in SCM files ...
      Sep 11, 2014 11:21:19 AM FINER org.apache.maven.scm.manager.ScmManager checkIn
      THROW
      org.apache.maven.scm.ScmException: Exception while executing SCM command.
      at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:63)
      at org.apache.maven.scm.provider.git.AbstractGitScmProvider.executeCommand(AbstractGitScmProvider.java:291)
      at org.apache.maven.scm.provider.git.AbstractGitScmProvider.checkin(AbstractGitScmProvider.java:217)
      at org.apache.maven.scm.provider.AbstractScmProvider.checkIn(AbstractScmProvider.java:415)
      at org.apache.maven.scm.provider.AbstractScmProvider.checkIn(AbstractScmProvider.java:397)
      at org.apache.maven.scm.manager.AbstractScmManager.checkIn(AbstractScmManager.java:423)
      at hudson.plugins.scm_sync_configuration.SCMManipulator.checkinFiles(SCMManipulator.java:242)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.processCommitsQueue(ScmSyncConfigurationBusiness.java:208)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.access$000(ScmSyncConfigurationBusiness.java:29)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness$1.call(ScmSyncConfigurationBusiness.java:143)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness$1.call(ScmSyncConfigurationBusiness.java:141)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: org.apache.maven.scm.ScmException: Error while executing command.
      at org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils.execute(GitCommandLineUtils.java:122)
      at org.apache.maven.scm.provider.git.gitexe.command.checkin.GitCheckInCommand.executeCheckInCommand(GitCheckInCommand.java:129)
      at org.apache.maven.scm.command.checkin.AbstractCheckInCommand.executeCommand(AbstractCheckInCommand.java:54)
      at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
      ... 14 more
      Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error inside systemOut parser
      at org.codehaus.plexus.util.cli.CommandLineUtils$1.call(CommandLineUtils.java:188)
      at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:107)
      at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:74)
      at org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils.execute(GitCommandLineUtils.java:118)
      ... 17 more
      Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 0: "jobs/OXUpdater%20Core/config.xml"
      at java.net.URI.create(URI.java:859)
      at org.apache.maven.scm.provider.git.gitexe.command.status.GitStatusConsumer.resolveURI(GitStatusConsumer.java:251)
      at org.apache.maven.scm.provider.git.gitexe.command.status.GitStatusConsumer.resolvePath(GitStatusConsumer.java:232)
      at org.apache.maven.scm.provider.git.gitexe.command.status.GitStatusConsumer.consumeLine(GitStatusConsumer.java:138)
      at org.codehaus.plexus.util.cli.StreamPumper.consumeLine(StreamPumper.java:190)
      at org.codehaus.plexus.util.cli.StreamPumper.run(StreamPumper.java:135)
      Caused by: java.net.URISyntaxException: Illegal character in path at index 0: "jobs/OXUpdater%20Core/config.xml"
      at java.net.URI$Parser.fail(URI.java:2829)
      at java.net.URI$Parser.checkChars(URI.java:3002)
      at java.net.URI$Parser.parseHierarchical(URI.java:3086)
      at java.net.URI$Parser.parse(URI.java:3044)
      at java.net.URI.<init>(URI.java:595)
      at java.net.URI.create(URI.java:857)
      ... 5 more

      Sep 11, 2014 11:21:19 AM SEVERE hudson.plugins.scm_sync_configuration.SCMManipulator checkinFiles
      [checkinFiles] Error while checkin : Exception while executing SCM command.
      Sep 11, 2014 11:21:19 AM FINER hudson.plugins.scm_sync_configuration.SCMManipulator checkinFiles
      THROW
      hudson.plugins.scm_sync_configuration.exceptions.LoggableException: Error while checking in file to scm repository
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.processCommitsQueue(ScmSyncConfigurationBusiness.java:214)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.access$000(ScmSyncConfigurationBusiness.java:29)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness$1.call(ScmSyncConfigurationBusiness.java:143)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness$1.call(ScmSyncConfigurationBusiness.java:141)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rodrigc Craig Rodrigues
                Reporter:
                kleini Marcus Klein
              • Votes:
                23 Vote for this issue
                Watchers:
                35 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: