Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
283

kostis-codefresh/multi-git-clone kostis-codefresh/multi-git-clone

This pipeline plugin shows templating of custom steps

arguments

  • GIT_PROJECTS - A list/array of git projects to checkout
  • GIT_PROVIDER - Name of git provider to use from Codefresh integrations screen
  • GIT_REVISION - branch or tag or revision to checkout (same for all projects)
    version: '1.0'
steps:
  checkout_many_projects:
    title: Checking out my Git projects
    type: kostis-codefresh/multi-git-clone
    arguments:
      GIT_REVISION: master
      GIT_PROVIDER: github
      GIT_PROJECTS:
        - codefresh-contrib/ruby-on-rails-sample-app
        - kubernetes/sample-apiserver
        - kostis-codefresh/nestjs-example
        - spring-projects/spring-petclinic

  
github.com
Kostis Kapelonis
Dec 27, 2019