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

Build step failure - hudson.scm.SubversionSCM cannot be cast to class hudson.plugins.git.GitSCM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None

      Testing the new plugin but was not able to get it to work. Is Subversion SCM not supported?

      Added a post-build action to "Send build information to Jira". Build step failed with exception below.

      Plugin appears to be configured correctly. "Test settings" button in Configure System > Jira Software Cloud Integration for the Jira Cloud Site I added was successful.

       

       
      ERROR: Build step failed with exception
      java.lang.ClassCastException: class hudson.scm.SubversionSCM cannot be cast to class hudson.plugins.git.GitSCM (hudson.scm.SubversionSCM is in unnamed module of loader ****.util.AntClassLoader @13d6b3cc; hudson.plugins.git.GitSCM is in unnamed module of loader ****.util.AntClassLoader @9c2a247)
      at com.atlassian.jira.cloud.****.util.FreestyleBranchNameIssueKeyExtractor.extractIssueKeys(FreestyleBranchNameIssueKeyExtractor.java:27)
      at com.atlassian.jira.cloud.****.buildinfo.service.FreestyleJiraBuildInfoSenderImpl.lambda$getIssueKeys$1(FreestyleJiraBuildInfoSenderImpl.java:54)
      at java.base/java.util.Optional.orElseGet(Optional.java:369)
      at com.atlassian.jira.cloud.****.buildinfo.service.FreestyleJiraBuildInfoSenderImpl.getIssueKeys(FreestyleJiraBuildInfoSenderImpl.java:52)
      at com.atlassian.jira.cloud.****.buildinfo.service.JiraBuildInfoSenderImpl.sendBuildInfoToJiraSite(JiraBuildInfoSenderImpl.java:95)
      at com.atlassian.jira.cloud.****.buildinfo.service.JiraBuildInfoSenderImpl.lambda$sendBuildInfo$1(JiraBuildInfoSenderImpl.java:69)
      at java.base/java.util.Optional.map(Optional.java:265)
      at com.atlassian.jira.cloud.****.buildinfo.service.JiraBuildInfoSenderImpl.sendBuildInfo(JiraBuildInfoSenderImpl.java:69)
      at com.atlassian.jira.cloud.****.buildinfo.freestyle.FreeStylePostBuildStep.perform(FreeStylePostBuildStep.java:75)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:47)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:765)
      at hudson.model.Build$BuildExecution.post2(Build.java:179)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:709)
      at hudson.model.Run.execute(Run.java:1922)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
      at hudson.model.ResourceController.execute(ResourceController.java:101)
      at hudson.model.Executor.run(Executor.java:442)
      Build step 'Send build information to Jira' marked build as failure
       

            rafalmyslek Rafal Myslek
            breynoldspnc Brian Reynolds
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: