Status: Open (View Workflow)
Pipeline Groovy 2.27
TFS Plugin 5.3.1
Possibly bug in CpsScmFlowDefinition, or a Stapler issue.
Install Pipeline and TFS Plugin. Create a Pipeline job. TFVC is offered in the 'Pipeline from SCM' when it shouldn't be, as it's missing the checkout(Job) override (and doesn't override isApplicable(Job)).
Configure 'Pipeline from SCM: None", Apply, and reload. It will select Git, as it's the only applicable one now (NullSCM isn't either).
- is duplicated by
JENKINS-39219 Pipeline from SCM options disappear
Throwing this on my to-do list - the actual change is trivial, but I need to take the time to write a WebClient test to actually verify it works. And I'm not in the mood at the moment, so I'll do it later. =)
Ran into the same issue, is there a work-around until this is solved? my problem is exactly like the duplicate on this issue.
This is blocking the build of the job, since it throws a Null Pointer when it tries to find the scm even though I specified it as 'None'
CpsScmFlowDefinition.DescriptorImpl.getApplicableDescriptors needs to use StaplerReferer.findItemFromRequest.