This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var graphql = require('graphql.js'); | |
var moment = require('moment'); | |
moment().format(); | |
var graph = graphql("https://graphql.buildkite.com/v1", { | |
method: "POST", | |
headers: { "Authorization": "Bearer <api-token>"}, | |
asJSON: true, | |
debug: true, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"os" | |
"github.com/buildkite/go-buildkite/v2/buildkite" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation scheduleBuild { | |
pipelineScheduleCreate( | |
input: { | |
pipelineID: "UGlwZWxpbmUtLS1teS1waXBlbGluZS11dWlkLWFzLWZvdW5kLWluLXlvdXItcGlwZWxpbmUtc2V0dGluZ3M=" | |
cronline: "0 */4 * * *" | |
message: "My schedule" | |
label: "new schedule" | |
} | |
) { | |
clientMutationId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"context" | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"net/http/httputil" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env: | |
DOCKER_IMAGE_TAG: "myservice-${BUILDKITE_BRANCH}-${BUILDKITE_COMMIT:0:7}" | |
steps: | |
- name: 'test :hammer:' | |
agents: | |
queue: aws-buildkite-agent | |
command: echo ".buildkite/test.sh" | |
- wait: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- label: "pre-gate step" | |
command: echo "pre-gate step" | |
- wait | |
- label: "Concurrency gate" | |
command: exit 0 | |
concurrency_group: gate | |
concurrency: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env: | |
CODE_FREEZE: true | |
steps: | |
- command: "buildkite-agent annotate 'code freeze in place' --style 'error'" | |
if: "build.env('CODE_FREEZE') == 'true'" | |
- command: "buildkite-agent pipeline upload" | |
label: ":pipeline:" | |
if: "build.env('CODE_FREEZE') == 'false'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"context" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- command: echo "running unit tests" | |
key: unit-tests | |
###################### | |
# START OF GATE 1 # | |
###################### | |
- command: "exit 0" # start the gate region by using a no-op | |
concurrency_group: gate | |
concurrency: 1 |
NewerOlder