Buildkite

Community
Package contributed by a community member
v0.2.2 published on Monday, Jul 25, 2022 by Grapl Security

getPipeline

# Data Source: pipeline

Use this data source to look up properties on a specific pipeline. This is particularly useful for looking up the webhook URL for each pipeline.

Buildkite Documentation: https://buildkite.com/docs/pipelines

Example Usage

using Pulumi;
using Buildkite = Pulumi.Buildkite;

class MyStack : Stack
{
    public MyStack()
    {
        var repo2 = Output.Create(Buildkite.GetPipeline.InvokeAsync(new Buildkite.GetPipelineArgs
        {
            Slug = "repo2",
        }));
    }

}
package main

import (
	"github.com/grapl-security/pulumi-buildkite/sdk/go/buildkite"
	"github.com/pulumi/pulumi-buildkite/sdk/go/buildkite"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := buildkite.LookupPipeline(ctx, &GetPipelineArgs{
			Slug: "repo2",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.buildkite.BuildkiteFunctions;
import com.pulumi.buildkite.inputs.GetPipelineArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var repo2 = BuildkiteFunctions.getPipeline(GetPipelineArgs.builder()
            .slug("repo2")
            .build());

    }
}
import pulumi
import pulumi_buildkite as buildkite

repo2 = buildkite.get_pipeline(slug="repo2")
import * as pulumi from "@pulumi/pulumi";
import * as buildkite from "@pulumi/buildkite";

const repo2 = pulumi.output(buildkite.getPipeline({
    slug: "repo2",
}));
variables:
  repo2:
    Fn::Invoke:
      Function: buildkite:getPipeline
      Arguments:
        slug: repo2

Using getPipeline

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getPipeline(args: GetPipelineArgs, opts?: InvokeOptions): Promise<GetPipelineResult>
function getPipelineOutput(args: GetPipelineOutputArgs, opts?: InvokeOptions): Output<GetPipelineResult>
def get_pipeline(slug: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetPipelineResult
def get_pipeline_output(slug: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetPipelineResult]
func LookupPipeline(ctx *Context, args *LookupPipelineArgs, opts ...InvokeOption) (*LookupPipelineResult, error)
func LookupPipelineOutput(ctx *Context, args *LookupPipelineOutputArgs, opts ...InvokeOption) LookupPipelineResultOutput

> Note: This function is named LookupPipeline in the Go SDK.

public static class GetPipeline 
{
    public static Task<GetPipelineResult> InvokeAsync(GetPipelineArgs args, InvokeOptions? opts = null)
    public static Output<GetPipelineResult> Invoke(GetPipelineInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPipelineResult> getPipeline(GetPipelineArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: buildkite:index/getPipeline:getPipeline
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Slug string

The slug of the pipeline, available in the URL of the pipeline on buildkite.com

Slug string

The slug of the pipeline, available in the URL of the pipeline on buildkite.com

slug String

The slug of the pipeline, available in the URL of the pipeline on buildkite.com

slug string

The slug of the pipeline, available in the URL of the pipeline on buildkite.com

slug str

The slug of the pipeline, available in the URL of the pipeline on buildkite.com

slug String

The slug of the pipeline, available in the URL of the pipeline on buildkite.com

getPipeline Result

The following output properties are available:

DefaultBranch string

The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.

Description string

A description of the pipeline.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the pipeline.

Repository string

The git URL of the repository.

Slug string
WebhookUrl string

The default branch to prefill when new builds are created or triggered.

DefaultBranch string

The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.

Description string

A description of the pipeline.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the pipeline.

Repository string

The git URL of the repository.

Slug string
WebhookUrl string

The default branch to prefill when new builds are created or triggered.

defaultBranch String

The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.

description String

A description of the pipeline.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the pipeline.

repository String

The git URL of the repository.

slug String
webhookUrl String

The default branch to prefill when new builds are created or triggered.

defaultBranch string

The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.

description string

A description of the pipeline.

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the pipeline.

repository string

The git URL of the repository.

slug string
webhookUrl string

The default branch to prefill when new builds are created or triggered.

default_branch str

The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.

description str

A description of the pipeline.

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the pipeline.

repository str

The git URL of the repository.

slug str
webhook_url str

The default branch to prefill when new builds are created or triggered.

defaultBranch String

The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.

description String

A description of the pipeline.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the pipeline.

repository String

The git URL of the repository.

slug String
webhookUrl String

The default branch to prefill when new builds are created or triggered.

Package Details

Repository
https://github.com/grapl-security/pulumi-buildkite
License
Apache-2.0
Notes

This Pulumi package is based on the buildkite Terraform Provider.