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

Error: Unable to infer the new branch name from XXX

    XMLWordPrintable

Details

    Description

      The problem lies in the fact that the plugin tries to deduce the branch to be created absolute path from the current trunk path.

      The assumption is that the svn repository is using the following convention:

      http://svnserver.com/projectName and within that you have a a trunk and a branches folder.

      Our setup uses a completely different structure where the "trunk" folder is at the root and has a different name other than trunk. Within that "trunk" folder you have another 2 layers at least till you reach the project that has been checked out.

      trunk example:
      http://svnserver.com/FolderTrunk/Folder2/Folder3/Folder4/ProjectName

      branch example:
      http://svnserver.com/FolderBranches/Folder2/..At_Least_3_Folders../FeatureBranch

      The "culprit" seems to be: svnmerge-plugin / src / main / java / jenkins / plugins / svnmerge / IntegratableProjectAction.java

      A possible fix would be to also allow the user to define the full feature branch path from the root of the svn as an additional feature. That would allow us to create a feature branch anywhere within our svn structure since features branches can go in more than one "branch locations" (ie you have no way to automatically deduce the full branch path)

      Its not critical but currently we cannot use this plugin due to this problem.

      I have never developed for Jenkins but I am a Java Developer so I could give it a go myself as long as I am pointed in the right direction.

      Attachments

        Issue Links

          Activity

            alex_ouzounis Alex Ouzounis added a comment -

            any help would be greatly appreciated

            alex_ouzounis Alex Ouzounis added a comment - any help would be greatly appreciated

            Code changed in jenkins
            User: Hugues Chabot
            Path:
            .gitignore
            src/main/java/jenkins/plugins/svnmerge/IntegratableProjectAction.java
            src/main/java/jenkins/plugins/svnmerge/RepositoryLayoutEnum.java
            src/main/java/jenkins/plugins/svnmerge/RepositoryLayoutInfo.java
            src/main/resources/jenkins/plugins/svnmerge/IntegratableProjectAction/_attach.groovy
            src/main/resources/jenkins/plugins/svnmerge/IntegratableProjectAction/_attach.properties
            src/main/resources/jenkins/plugins/svnmerge/IntegratableProjectAction/index.groovy
            src/main/resources/jenkins/plugins/svnmerge/IntegratableProjectAction/index.properties
            src/test/java/jenkins/plugins/svnmerge/RepositoryLayoutInfoTest.java
            http://jenkins-ci.org/commit/svnmerge-plugin/6598e037fd58781bbc0c1965e322219cca2c535d
            Log:
            Merge pull request #13 from hugueschabot/jenkins-22284

            [FIXED JENKINS-22284] Improve branch creation
            [FIXED JENKINS-15830] Error: Unable to infer the new branch name from XXX

            Compare: https://github.com/jenkinsci/svnmerge-plugin/compare/ca285ed64c31...6598e037fd58

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Hugues Chabot Path: .gitignore src/main/java/jenkins/plugins/svnmerge/IntegratableProjectAction.java src/main/java/jenkins/plugins/svnmerge/RepositoryLayoutEnum.java src/main/java/jenkins/plugins/svnmerge/RepositoryLayoutInfo.java src/main/resources/jenkins/plugins/svnmerge/IntegratableProjectAction/_attach.groovy src/main/resources/jenkins/plugins/svnmerge/IntegratableProjectAction/_attach.properties src/main/resources/jenkins/plugins/svnmerge/IntegratableProjectAction/index.groovy src/main/resources/jenkins/plugins/svnmerge/IntegratableProjectAction/index.properties src/test/java/jenkins/plugins/svnmerge/RepositoryLayoutInfoTest.java http://jenkins-ci.org/commit/svnmerge-plugin/6598e037fd58781bbc0c1965e322219cca2c535d Log: Merge pull request #13 from hugueschabot/jenkins-22284 [FIXED JENKINS-22284] Improve branch creation [FIXED JENKINS-15830] Error: Unable to infer the new branch name from XXX Compare: https://github.com/jenkinsci/svnmerge-plugin/compare/ca285ed64c31...6598e037fd58

            People

              kohsuke Kohsuke Kawaguchi
              alex_ouzounis Alex Ouzounis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: