In experimenting with my first workflow project I switched over from editing straight in the project config to
Groovy CPS DSL from SCM. The UI displayed all the expected SCM flavors: Git, SVN, CVS, etc. We're an SVN shop so I chose that and filled out the checkout details. After saving and coming back into the job config, however, the
SCM dropdown had switched to Git and subsequently displayed only Git, obscuring all my SVN settings.
I replicated this issue and noted that under the covers, in the job's config.xml, it still seems to be configured for SVN despite the behavior of the UI. Note I did not specify any particular SVN parameters this second time so most of the properties are empty:
<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@1.8">
<scm class="hudson.scm.SubversionSCM" plugin="subve...@1.54">
<locations/>
<excludedRegions></excludedRegions>
<includedRegions></includedRegions>
<excludedUsers></excludedUsers>
<excludedRevprop></excludedRevprop>
<excludedCommitMessages></excludedCommitMessages>
<workspaceUpdater class="hudson.scm.subversion.UpdateUpdater"/>
<ignoreDirPropChanges>false</ignoreDirPropChanges>
<filterChangelog>false</filterChangelog>
</scm>
<scriptPath>flow.groovy</scriptPath>
</definition>
We're running Jenkins 1.609.1 and workflow-plugin 1.8.