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="subversion@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.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c69bb0d6-9b00-421f-8060-4b0ef916d0f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to