Code Monkey home page Code Monkey logo

Comments (2)

imperfect-fourth avatar imperfect-fourth commented on August 25, 2024

The way things are being done right now is that we have a custom checkout hook in our plugin which handles the checkout by taking the information from the configuration(url and ref). But, according to buildkite documentation for the checkout hook, if there are multiple checkout hooks present then only the first one is run.

So the solution suggested above will be hard to implement, since each will create a separate checkout hook but only the first would be run. I would suggest that we do it something like smooth-secrets where an array of secrets configuration(secrets) is provided under the same plugin definition. So it would look something like this

steps:
  - command: echo "Checks out multiple repositories"
    plugins:
      - hasura/smooth-checkout#v2.0.0:
          repos:
            - config:
              - url: [email protected]:<username>/<reponame1>.git
              - url: [email protected]:<username>/<reponame1>.git
            - config:
              - url: [email protected]:<username>/<reponame2>.git
                ref: main

from smooth-checkout-buildkite-plugin.

scriptnull avatar scriptnull commented on August 25, 2024

Ah! Nice catch about the usage of multiple checkout hooks. The YAML that you proposed looks good. (additionally, it may help us to re-use our mirroring logic to the fullest) πŸ‘ :shipit:

from smooth-checkout-buildkite-plugin.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.