how to change subversion workspace format with a Groovy script?

42 views
Skip to first unread message

Nico Mommaerts

unread,
Jul 26, 2014, 2:55:43 PM7/26/14
to jenkins...@googlegroups.com
Hey guys,

I'm trying to find out how I change the Subversion workspace format defined by the SubversionSCM plugin with a Groovy script?

This is what the plugin stores as configuration:
<?xml version='1.0' encoding='UTF-8'?>
<hudson.scm.SubversionSCM_-DescriptorImpl plugin="subve...@1.54">
  <generation>1</generation>
  <credentials class="hashtable"/>
  <workspaceFormat>10</workspaceFormat>
  <validateRemoteUpToVar>false</validateRemoteUpToVar>
  <storeAuthToDisk>true</storeAuthToDisk>
</hudson.scm.SubversionSCM_-DescriptorImpl>

I can query the value with this snippet:
Jenkins.instance.getDescriptorByName("hudson.scm.SubversionSCM").getWorkspaceFormat() 

But I don't seem to find a way to change it? I set a bunch of other options in the core and other plugins by using the descriptors but no cigar here.
Any suggestions?

Greets,
Nico 
Reply all
Reply to author
Forward
0 new messages