Git Product home page Git Product logo

Comments (1)

keithpitt avatar keithpitt commented on September 26, 2024

@rhysawilliams2010 howdy! Yeah it's a little hidden t the moment since teams is still in BETA. Adding teams to a pipeline is possible via REST - but it's a little tricky unfortunately...

The first step is to get the Team UUID's that you wanna add. The best way to do this is via the GraphQL API: http://graphql.buildkite.com - here's a guide on how to get started with it: https://building.buildkite.com/tutorial-getting-started-with-graphql-queries-and-mutations-11211dfe5d64

The query you wanna run is this:

query {
  organization(slug: "my-org-slug") {
    teams(first: 100) {
      edges {
        node {
          name
          uuid
        }
      }
    }
  }
}

This will give you a list of teams and their UUID's.

Once you've got them, you can send team_ids as an array within the "create-a-pipelie" REST API call. So something like this:

{
  "name": "My Awesome Pipeline",
  "repository": "[email protected]:my/repo.git",
  "steps": [ ... ],
  "team_ids": [ "568f2f97-0c81-4fb2-a915-dba5d0bddd3f", "88ce2d96-36d6-4ffd-8060-18698a8a718c" ]
}

Lemme know how you go! Will close for now. Feel free to comment on here again if you need a hand :)

from docs.

Related Issues (20)

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.