Hi James, try:
checkout changelog: true, poll: false, scm: [$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, , extensions: [[$class: 'hudson.plugins.git.extensions.impl.RelativeTargetDirectory', relativeTargetDir: 'myfunkydirectory']], submoduleCfg: [], userRemoteConfigs: [[url: 'ssh://foobar@whizbang/git/repo']]] Clifford Am Freitag, 15. August 2014 17:34:08 UTC+2 schrieb James Nord (jnord): > > Hi all, > > > > I’m trying to get the new workflow to checkout from git with some > additional behaviours (clone to specific dir) > > > > Because of this the “git” step won’t work – so I need to fall back to > > scm $class: 'hudson.plugins.git.GitSCM’ …. > > But the additional behaviours aren’t defined in the top of the <scm…> > block so I’m wondering how would I pass something like the following as a > command. > > > > <scm class="hudson.plugins.git.GitSCM"> > > <userRemoteConfigs> > > <hudson.plugins.git.UserRemoteConfig> > > <url>ssh://foobar@whizbang/git/repo</url> > > </hudson.plugins.git.UserRemoteConfig> > > </userRemoteConfigs> > > <branches> > > <hudson.plugins.git.BranchSpec> > > <name>*/master</name> > > </hudson.plugins.git.BranchSpec> > > </branches> > > <extensions> > > <hudson.plugins.git.extensions.impl.IgnoreNotifyCommit/> > > <hudson.plugins.git.extensions.impl.RelativeTargetDirectory> > > <relativeTargetDir>myfunkydirectory</relativeTargetDir> > > </hudson.plugins.git.extensions.impl.RelativeTargetDirectory> > > </extensions> > > </scm> > > > > Anyone any suggestions? > > > > /James > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/052afbc5-4327-47ce-9644-427eb7526245%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
