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

Jenkins not discovering support branches after bitbucket project url changes

      Last week the project for the VS&L team in bitbucket was renamed from va to vsl. 
      Developers changed local git config and jenkins config to adapt to the new name. 

      When trying to build a new release version, jenkins will display the existing support branches, allowing the user to select from which branch to build. 

      Since the rename of the project, this parameter no longer behaves as required (configuration example see Parameter config.png). For some repositories, the old url doesn't work anymore (see old not working.png). For some the old url remains functional (see old working.png). 

      When changing any parameter configuration to the new url, no repository works anymore 
      We have checked with atlassin bitbucket support team they saying its issue with 
      Third party plugin which we are using for integration with Jenkins
      Could you please suggest.

      Bitbucket Branch Source

          [JENKINS-75213] Jenkins not discovering support branches after bitbucket project url changes

          Mahesh added a comment -

          Hello all, 
          Jenkinsfile in sub-directory of the repository are not accessible anymore. 
          This is happning after updating 
          cloudbees-bitbucket-branch-source to v934.4.0

          Branch indexing 10:01:46.961 java.lang.IllegalArgumentException: Name cannot contain '/' 10:01:46.961 at PluginClassLoader for scm-api//jenkins.scm.api.SCMFile.<init>(SCMFile.java:83) 10:01:46.961 at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.filesystem.BitbucketSCMFile.<init>(BitbucketSCMFile.java:58) 10:01:46.961 at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.client.repository.BitbucketRepositorySource.toBitbucketSCMFile(BitbucketRepositorySource.java:90) 10:01:46.961 at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getFile(BitbucketCloudApiClient.java:879) 10:01:46.961 at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.filesystem.BitbucketSCMFile.type(BitbucketSCMFile.java:109) 10:01:46.961 at PluginClassLoader for scm-api//jenkins.scm.api.SCMFile.getType(SCMFile.java:265) 10:01:46.961 at PluginClassLoader for scm-api//jenkins.scm.api.SCMFile.isFile(SCMFile.java:238) 10:01:46.961 at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.filesystem.BitbucketSCMFile.content(BitbucketSCMFile.java:86) 10:01:46.961 at PluginClassLoader for scm-api//jenkins.scm.api.SCMFile.contentAsString(SCMFile.java:335) 10:01:46.961 at PluginClassLoader for workflow-multibranch//org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:113) 10:01:46.961 at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:311) 10:01:46.961 at hudson.model.ResourceController.execute(ResourceController.java:101) 10:01:46.961 at hudson.model.Executor.run(Executor.java:445)

          Mahesh added a comment - Hello all,  Jenkinsfile in sub-directory of the repository are not accessible anymore.  This is happning after updating  cloudbees-bitbucket-branch-source to v934. 4 . 0 Branch indexing 10:01:46.961 java.lang.IllegalArgumentException: Name cannot contain '/' 10:01:46.961 at PluginClassLoader for scm-api//jenkins.scm.api.SCMFile.<init>(SCMFile.java:83) 10:01:46.961 at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.filesystem.BitbucketSCMFile.<init>(BitbucketSCMFile.java:58) 10:01:46.961 at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.client.repository.BitbucketRepositorySource.toBitbucketSCMFile(BitbucketRepositorySource.java:90) 10:01:46.961 at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getFile(BitbucketCloudApiClient.java:879) 10:01:46.961 at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.filesystem.BitbucketSCMFile.type(BitbucketSCMFile.java:109) 10:01:46.961 at PluginClassLoader for scm-api//jenkins.scm.api.SCMFile.getType(SCMFile.java:265) 10:01:46.961 at PluginClassLoader for scm-api//jenkins.scm.api.SCMFile.isFile(SCMFile.java:238) 10:01:46.961 at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.filesystem.BitbucketSCMFile.content(BitbucketSCMFile.java:86) 10:01:46.961 at PluginClassLoader for scm-api//jenkins.scm.api.SCMFile.contentAsString(SCMFile.java:335) 10:01:46.961 at PluginClassLoader for workflow-multibranch//org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:113) 10:01:46.961 at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:311) 10:01:46.961 at hudson.model.ResourceController.execute(ResourceController.java:101) 10:01:46.961 at hudson.model.Executor.run(Executor.java:445)

          Nikolas Falco added a comment -

          You forget attachments

          Nikolas Falco added a comment - You forget attachments

          Rodrigo added a comment -

          Hello,

          After updating the plugin to version 934.4.1, we are experiencing errors in some Jenkins builds (attached is the error log). Our Jenkins version is 2.492.1.

          I noticed that this version was supposed to fix the issue "Name cannot contain '/'", although we didn’t have any problems with version 934.4.0.

          Thank you very much in advance.

          Regards

          Rodrigo added a comment - Hello, After updating the plugin to version 934.4.1 , we are experiencing errors in some Jenkins builds (attached is the error log). Our Jenkins version is 2.492.1 . I noticed that this version was supposed to fix the issue " Name cannot contain '/' ", although we didn’t have any problems with version 934.4.0 . Thank you very much in advance. Regards

          Nikolas Falco added a comment -

          Are the logs posted by mkashyap and rdport related to this issue?

          Nikolas Falco added a comment - Are the logs posted by mkashyap and rdport related to this issue?

          Nikolas Falco added a comment -

          knagmote please post the missing attachments

          Nikolas Falco added a comment - knagmote please post the missing attachments

          Mahesh added a comment -

          The Jenkinsfile path issue (Name cannot contain '/') is fixed after updating the bitbucket-branch-source-plugin to v 934.4.2. 
          Thank you nfalco for the quick changes. 

          Mahesh added a comment - The Jenkinsfile path issue (Name cannot contain '/') is fixed after updating the bitbucket-branch-source-plugin to v 934.4.2.  Thank you nfalco for the quick changes. 

            nfalco Nikolas Falco
            knagmote Kalpesh
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: