java.lang.AbstractMethodError when tfs-plugin try to checkout Jenkinsfile on Jenkins 2.60.1

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: tfs-plugin
    • None
    • Environment:

      Hi, according to -JENKINS-31803-, the tfs-plugin has support Jenkins pipeline, however I still met exception when checkingout the Jenkinsfile. 

       

      Lightweight checkout support not available, falling back to full checkout.
      Checking out hudson.plugins.tfs.TeamFoundationServerScm to read Jenkinsfile
      java.lang.AbstractMethodError: you must override the new overload of checkout
      	at hudson.scm.SCM.checkout(SCM.java:488)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113)
      	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:130)
      	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:59)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:262)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:405)
      Finished: FAILURE
      
      

      Here's my test steps:

      1. I created an account on VSTS, created a Team Project. checkin a sample project with Jenkinsfile at $/MyFirstProject/xcpretty/Jenkinsfile
      2. Create my personal access token with all permissions.
      3. Pull latest jenkins docker image and install all default plugins as well as TFS plugin 5.3.4
      4. Config TFS/Team Services in Jenkins configuration system page. add VSTS project url and personal access token, test connection return 'Success via SOAP API'. click save.
      5. Create a pipeline project, configure it with 'pipeline script from SCM', SCM:"TFVC", put collection url and path $/MyFirstProject/xcpretty. use same credential. click save.
      6. click build now. Jenkins fails with build error above.
      Expectation:

      It should retrieve the Jenkinsfile from VSTS $/MyFirstProject/xcpretty folder, 

      Actual:

      It got exception and cannot proceed the build.

      Version Details

      jenkins 2.60.1
      tfs 5.3.4
      workflow-aggregator 2.5
      workflow-api 2.18
      workflow-basic-steps 2.6
      workflow-cps 2.36
      workflow-cps-global-lib 2.8
      workflow-durable-task-step 2.12
      workflow-job 2.12.1
      workflow-multibranch 2.16
      workflow-scm-step 2.6
      workflow-step-api 2.12
      workflow-support 2.14

            Assignee:
            redsolo
            Reporter:
            Yingshen Yu
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: