diff --git a/.buildkite/pipeline.test-user.yml b/.buildkite/pipeline.test-user.yml new file mode 100644 index 0000000..cebcc09 --- /dev/null +++ b/.buildkite/pipeline.test-user.yml @@ -0,0 +1,3 @@ +steps: + - label: ":desktop_computer:" + command: ./src/watch-github-release.sh diff --git a/README.md b/README.md index bd7346f..9019e8a 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Buildkite Tutorial -This repo contains various Buildkite pipelines for a tutorial (soon to be published) on Stark & Wayne blog. +hello This repo contains various Buildkite pipelines for a tutorial (soon to be published) on Stark & Wayne blog. ## Get started - +try pr without pr checkbox and master-new selected Click the following button to start [the tutorial](https://github.com/starkandwayne/buildkite-tutorial) on your [free Buildkite account](https://buildkite.com/pricing): [![Start tutorial on Buildkite](https://buildkite.com/button.svg)](https://buildkite.com/new) diff --git a/fife b/fife new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/fife @@ -0,0 +1 @@ + diff --git a/hook/environment b/hook/environment new file mode 100755 index 0000000..ea2d80b --- /dev/null +++ b/hook/environment @@ -0,0 +1,8 @@ +#!/bin/bash +set -euo pipefail +export baby="babyboo" +if [[ "$$BUILDKITE_PIPELINE_SLUG" == "samplequestion4" ]]; then + export BUILDKITE_ANALYTICS_TOKEN="oS3AG0eBuUJMWRgkRvek" + export baby="babyboo" + +fi diff --git a/hooks/environment b/hooks/environment new file mode 100755 index 0000000..d223d7d --- /dev/null +++ b/hooks/environment @@ -0,0 +1,8 @@ +#!/bin/bash +set -euo pipefail + +if [[ "$$BUILDKITE_PIPELINE_SLUG" == "samplequestion4" ]]; then + export BUILDKITE_ANALYTICS_TOKEN="oS3AG0eBuUJMWRgkRvek" + export baby="babyboo" + +fi diff --git a/jr b/jr new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/jr @@ -0,0 +1 @@ + diff --git a/kfjmfm b/kfjmfm new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/kfjmfm @@ -0,0 +1 @@ + diff --git a/pipeline.yml b/pipeline.yml new file mode 100644 index 0000000..ef69355 --- /dev/null +++ b/pipeline.yml @@ -0,0 +1,16 @@ +steps: + - command: "echo hi" + soft_fail: true + key: 'one' + + - label: 'Step 5' + command: | + if [ $(buildkite-agent step get "outcome" --step "one") == "soft_failed" ]; then + cat <<- YAML | buildkite-agent pipeline upload + steps: + notify: + - github_commit_status: + context: "my-status-for-soft-fadfdfil" + YAML + fi + diff --git a/scads b/scads new file mode 100644 index 0000000..22b6cf7 --- /dev/null +++ b/scads @@ -0,0 +1 @@ +tesdsd