-
Bug
-
Resolution: Fixed
-
Major
-
None
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:
- I created an account on VSTS, created a Team Project. checkin a sample project with Jenkinsfile at $/MyFirstProject/xcpretty/Jenkinsfile
- Create my personal access token with all permissions.
- Pull latest jenkins docker image and install all default plugins as well as TFS plugin 5.3.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.
- 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.
- 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