[JIRA] (JENKINS-59121) Multibranch build strategy extension plugin throws BitbucketSCMSource cannot be cast to AbstractGitSCMSource

2019-09-03 Thread igal.g...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Igal Gluh commented on  JENKINS-59121  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Multibranch build strategy extension plugin throws BitbucketSCMSource cannot be cast to AbstractGitSCMSource   
 

  
 
 
 
 

 
 Benjamin Hi, Can you please share yours job configuration ?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.201550.1566997231000.5986.1567533660133%40Atlassian.JIRA.


[JIRA] (JENKINS-59121) Multibranch build strategy extension plugin throws BitbucketSCMSource cannot be cast to AbstractGitSCMSource

2019-08-28 Thread benjamin.fede...@basyskom.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Benjamin Federau created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-59121  
 
 
  Multibranch build strategy extension plugin throws BitbucketSCMSource cannot be cast to AbstractGitSCMSource   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Igal Gluh  
 
 
Components: 
 multibranch-build-strategy-extension-plugin  
 
 
Created: 
 2019-08-28 13:00  
 
 
Environment: 
 Ubuntu 18.04, Jenkins 2.191, Bitbucket Branch Source Plugin 2.4.6,  SCM API Plugin 2.6.3, Git plugin 3.12.0,  
 
 
Priority: 
  Critical  
 
 
Reporter: 
 Benjamin Federau  
 

  
 
 
 
 

 
 I'm using a Multibranch Pipeline Project with the Bitbucket Branch Sources Plugin. Currently I get an exception when setting a included or excluded build strategy. In the Jenkins log file the output is:   

 

2019-08-28 08:43:18.576+ [id=13442] INFOc.i.j.p.m.b.IncludeRegionBranchBuildStrategy#isAutomaticBuild: Included regions: [hub/azuredeploy.json, hub/azuredeploy.parameters.json, hub/Jenkinsfile]
2019-08-28 08:43:18.577+ [id=13442] SEVERE  c.i.j.p.m.b.IncludeRegionBranchBuildStrategy#isAutomaticBuild: Unecpected exception
java.lang.ClassCastException: com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource cannot be cast to jenkins.plugins.git.AbstractGitSCMSource
at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:378)
at com.igalg.jenkins.plugins.multibranch.buildstrategy.BranchBuildStrategyExtension.buildSCMFileSystem(BranchBuildStrategyExtension.java:55)
at com.igalg.jenkins.plugins.multibranch.buildstrategy.IncludeRegionBranchBuildStrategy.isAutomaticBuild(IncludeRegionBranchBuildStrategy.java:96)
at