Checkout multiple git repos into same Jenkins workspace

后端 未结 9 1604
谎友^
谎友^ 2020-11-28 04:42

Using Jenkins 1.501 and Jenkins Git plugin 1.1.26

I have 3 different git repos each with multiple projects.

Now I need to checkout all projects from the 3 gi

9条回答
  •  [愿得一人]
    2020-11-28 05:08

    Checking out more than one repo at a time in a single workspace is possible with Jenkins + Git Plugin (maybe only in more recent versions?).

    In section "Source-Code-Management", do not select "Git", but "Multiple SCMs" and add several git repositories.

    Be sure that in all but one you add as an "Additional behavior" the action "Check out to a sub-directory" and specify an individual subdirectory.

提交回复
热议问题