No, I wasn't using the plugin as the default Git plugin lets me add
multiple repos to a job (wonder how that's supposed to work with its
current behaviour). I installed the Multiple SCMs Plugin and that
solved the problem.

Thank you.

On Tue, Feb 4, 2014 at 2:57 PM, Marc MacIntyre <[email protected]> wrote:
> Assuming you're using the multi-scm plugin, in each git repository section
> of the configuration, there's an "advanced" button below the "branches to
> build" section.  (Not to be confused with the "advanced" button in the
> "repository url" section).  In there you'll find a "local subdirectory for
> repo" field you can set.
>
>
> On Tue, Feb 4, 2014 at 5:43 AM, Robert Krüger <[email protected]> wrote:
>>
>> Hi,
>>
>> I have a project that builds using gradle and is organized as a
>> multi-project build but is managed in two different git repositories.
>> The build works if both are cloned into the same directory like so
>>
>> - project1
>>    - master-module
>> - project2
>>    - sub-module1
>>    - sub-module2
>>    - sub-module3
>> ...
>>
>> Now to build this you execute a gradle build script in
>> project1/build.gradle
>>
>> I have now set up my Jenkins job to check out those two repos and it
>> seems the checkouts overwrite each other in workspace. What I want is
>> the directory structure specified above underneath "workspace" but
>> what I get is that master-module, sub-modulke1 etc. are checked out
>> directly under workspace apparently even overwriting/deleting each
>> other.
>>
>> How can I solve this?
>>
>> I don't see an option where I can specify where it is checked out
>> into. I want it to behave like a git clone performed in the workspace
>> which would retain the top-level directories project1, project2.
>>
>> Thanks in advance,
>>
>> Robert
>>
>> --
>> 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].
>> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
> --
> Marc MacIntyre
>
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to