Skip to content

Can you check out multiple repositories for a Gradle composite build? #4382

Closed Answered by zc-devs
nightm4re94 asked this question in Ask a Question
Discussion options

You must be logged in to vote

The only one special clone step can be defined in a workflow:

clone:
  git:
    image: woodpeckerci/plugin-git
clone:
  git:
    image: woodpeckerci/plugin-git
steps:
  build:
    image: alpine
    commands:
      - echo 'Build'
  test:
    image: alpine
    commands:
      - echo 'Test'

But you can use clone plugin or image with git in so many steps, how you want:

steps:
  clone-deps:
    image: woodpeckerci/plugin-git
    settings: ...
  build:
    image: alpine
    commands:
      - echo 'Build'
  test:
    image: alpine
    commands:
      - echo 'Test'
  push-back:
    image: alpine/git
    commands: ...


main project and the library checked out in the same parent directory and ad…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nightm4re94
Comment options

@nightm4re94
Comment options

Answer selected by nightm4re94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants