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

scm-syn-configuration issues with multi branch project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      ubuntu 14.04 64 bit
      java 1.7
      Jenkins 2.7
      sync configuration 0.10
      multi-branch-project-plugin 0.4.2
      git 2.4.4
      git-changelog
      git-client 1.19.6
      git-parameter 0.5.1
      git-server 1.6
    • Similar Issues:

      Description

      i'm using the multi-branch-project plugin.
      I get the following errors and there are no commits in the local git repository.
      these errors appear for every configuration change in jenkins.

      also, when I browse /var/lib/jenkins/jobs/my-feature-branches there is a folder named branches, and underneath it there are multiple folders which contain config.xml files.
      when I browse /var/lib/jenkins/scm-sync-configuration/checkoutConfiguration/my-feature-branches, there is only config.xml and no further folders or files.

      Aug 16, 2016 9:41:13 AM FINEST hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness
      Processing commit : Commit hudson.plugins.scm_sync_configuration.model.Commit@2076693a :
      Author : SYSTEM
      Comment : SYSTEM: File hierarchy deleted

      Change performed by SYSTEM

      Changeset :
      D jobs/My-feature-branches/branches/my-branch-name

      Aug 16, 2016 9:41:13 AM FINE hudson.plugins.scm_sync_configuration.SCMManipulator
      Deleting SCM hierarchy [/var/lib/jenkins/scm-sync-configuration/checkoutConfiguration/jobs/My-feature-branches/branches/my-branch-name] from SCM ...

      Aug 16, 2016 9:41:13 AM FINER org.apache.maven.scm.manager.ScmManager remove

      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.remove(AbstractGitScmProvider.java:255)
      at org.apache.maven.scm.provider.AbstractScmProvider.remove(AbstractScmProvider.java:773)
      at org.apache.maven.scm.manager.AbstractScmManager.remove(AbstractScmManager.java:553)
      at hudson.plugins.scm_sync_configuration.SCMManipulator.deleteHierarchy(SCMManipulator.java:127)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.deleteHierarchy(ScmSyncConfigurationBusiness.java:117)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.processCommitsQueue(ScmSyncConfigurationBusiness.java:214)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.access$000(ScmSyncConfigurationBusiness.java:32)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness$1.call(ScmSyncConfigurationBusiness.java:148)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness$1.call(ScmSyncConfigurationBusiness.java:145)
      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:150)
      at org.apache.maven.scm.provider.git.gitexe.command.remove.GitRemoveCommand.executeRemoveCommand(GitRemoveCommand.java:65)
      at org.apache.maven.scm.command.remove.AbstractRemoveCommand.executeCommand(AbstractRemoveCommand.java:49)
      at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
      ... 14 more
      Caused by: org.codehaus.plexus.util.cli.CommandLineException: Working directory "/var/lib/jenkins/scm-sync-configuration/checkoutConfiguration/jobs/My-feature-branches/branches/my-branch-name" does not exist!
      at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:661)
      at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLineAsCallable(CommandLineUtils.java:134)
      at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:105)
      at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:74)
      at org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils.execute(GitCommandLineUtils.java:146)
      ... 17 more

      Aug 16, 2016 9:41:13 AM SEVERE hudson.plugins.scm_sync_configuration.SCMManipulator deleteHierarchy

      [deleteHierarchy] Hierarchy deletion aborted : Exception while executing SCM command.

        Attachments

          Activity

          Hide
          dynabix D vanK added a comment -

          Would be great if this fix can be released. The current version is causing us a lot of trouble with multibranch configuration.

          Any news on a release date?

          Regards,

          David

          Show
          dynabix D vanK added a comment - Would be great if this fix can be released. The current version is causing us a lot of trouble with multibranch configuration. Any news on a release date? Regards, David
          Hide
          abubakar22 Abubakar Mohammed added a comment -

          Any idea about the release of this fix?
          I mean is the plugin owner planning to release? If yes then what would be the expected time.

          Thanks

          Show
          abubakar22 Abubakar Mohammed added a comment - Any idea about the release of this fix? I mean is the plugin owner planning to release? If yes then what would be the expected time. Thanks
          Hide
          dragon788 Ethan Spoelstra added a comment -

          I can confirm the hpi built by James Hogarth resolved this issue on one of our instances where we had been testing a multibranch job configuration via Bitbucket source.

          https://github.com/jenkinsci/scm-sync-configuration-plugin/pull/49#issuecomment-273456696

          The change has been merged, there just needs to be a release with the new functionality.

          Show
          dragon788 Ethan Spoelstra added a comment - I can confirm the hpi built by James Hogarth resolved this issue on one of our instances where we had been testing a multibranch job configuration via Bitbucket source. https://github.com/jenkinsci/scm-sync-configuration-plugin/pull/49#issuecomment-273456696 The change has been merged, there just needs to be a release with the new functionality.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Marco Nenciarini
          Path:
          src/main/java/hudson/plugins/scm_sync_configuration/model/ChangeSet.java
          http://jenkins-ci.org/commit/scm-sync-configuration-plugin/16704b24a41986145e3b2b51330733b20b13d435
          Log:
          Avoid to delete unexistent paths JENKINS-37500

          Signed-off-by: Marco Nenciarini <marco.nenciarini@2ndquadrant.it>
          Signed-off-by: Giulio Calacoci <giulio.calacoci@2ndquadrant.it>

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Marco Nenciarini Path: src/main/java/hudson/plugins/scm_sync_configuration/model/ChangeSet.java http://jenkins-ci.org/commit/scm-sync-configuration-plugin/16704b24a41986145e3b2b51330733b20b13d435 Log: Avoid to delete unexistent paths JENKINS-37500 Signed-off-by: Marco Nenciarini <marco.nenciarini@2ndquadrant.it> Signed-off-by: Giulio Calacoci <giulio.calacoci@2ndquadrant.it>
          Hide
          hogarthj James Hogarth added a comment -

          This affects other types of jobs taht ultimately use the multibranch configuration such as github or bitbucket source plugins.

          This really messes with the jenkins2 automatic pipeline magic configurations.

          Confirming that with PR49 on a local compile of the hpi it works around this particular issue.

          Show
          hogarthj James Hogarth added a comment - This affects other types of jobs taht ultimately use the multibranch configuration such as github or bitbucket source plugins. This really messes with the jenkins2 automatic pipeline magic configurations. Confirming that with PR49 on a local compile of the hpi it works around this particular issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            liricooli liron tal
            Votes:
            19 Vote for this issue
            Watchers:
            27 Start watching this issue

              Dates

              Created:
              Updated: