feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Support different git repository per pipeline step.

Open buchgr opened this issue 7 years ago • 2 comments

Hi!

We are the team building Bazel (https://bazel.build). We want to have a pipeline that builds a Bazel binary at a specific commit, then takes this Bazel binary and checks out a different repository (i.e. Tensorflow) and tries to build and test it using this Bazel binary. Something like this:

steps:
  - label: "Build Bazel"
    command:
      - bazel build //src:bazel
      - buildkite-agent artifact upload bazel-bin/src/bazel

  - wait:

  - label: "Build TensorFlow"
    git_repository: https://github.com/tensorflow/tensorflow.git 
    command:
      - buildkite-agent artifact download bazel-bin/src/bazel /tmp/dir/ -step "Build Bazel"
      - /tmp/dir/bazel-bin/src/bazel build ...

We are currently working around this limitation by cloning TensorFlow in our own scripts and managing these repositories ourselves. However, it would be great if Buildkite could do that for us!

Please let me know what you think. Thanks!

buchgr avatar Feb 20 '18 12:02 buchgr

Having just read something about this, maybe creating two pipelines and trigger the TensorFlow one (while passing some env var about where to locate the Bazel binary)? I haven't tested this so I'm not sure how (or if) they would share the build workspace/directory.

gtirloni avatar Mar 28 '18 20:03 gtirloni

Does anyone have any tips on how to achieve this?

phraemer avatar Apr 08 '20 11:04 phraemer