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 jenkins.branch.BranchBuildStrategy.automati