Re: [workflow-plugin] What is the best way to add '--recursive' to 'git' statements

2015-04-23 Thread Tim Wojtaszek
I'd recommend trying to do this using the Snippet Generator, General SCM, 
Git ...  make sure you are on workflow 1.4 at least.

It will help you put together something like this, taking advantage of all 
the extensions available.  I'm thinking what you really want is the ' 
doGenerateSubmoduleConfigurations: true part.

checkout([$class: 'GitSCM', branches: [[name: 'master']], 
doGenerateSubmoduleConfigurations: true, extensions: [[$class: 
'WipeWorkspace'], [$class: 'SparseCheckoutPaths', sparseCheckoutPaths: 
[[path: 'build', userRemoteConfigs: [[credentialsId: 'secretc', url: 
'g...@github.com:sample/sample.git']]])

Cheers,
tim

On Tuesday, April 21, 2015 at 7:25:15 PM UTC-7, Vizionz wrote:

 Hello,

 Is it possible to add '--recursive' parameter to the workflow git 
 statement?

 git branch: ${GitBranch}, changelog: true, poll: false, url: 
 ${GitRepo}

 This statement does not pull submodules when executed.



 High Regards,
 Jc


-- 
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/e5e5e883-4964-4fa3-8711-c5692253d503%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[workflow-plugin] What is the best way to add '--recursive' to 'git' statements

2015-04-21 Thread Vizionz
Hello,

Is it possible to add '--recursive' parameter to the workflow git statement?

git branch: ${GitBranch}, changelog: true, poll: false, url: ${GitRepo}

This statement does not pull submodules when executed.



High Regards,
Jc

-- 
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/661a3707-85cd-46c3-9dc9-9adf7358d16d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.