Questions tagged [buildkite]

Another CI/CD pipeline tool, similar as Travis CI.

https://buildkite.com/docs/quickstart/getting-started

51 questions
4
votes
1 answer

How can I trigger a build from a specific folder only in a monorepo? (buildkite)

We have a monorepo with 3 systems inside it. I want to create a separate build for each of the systems. How can I trigger a pipeline only when files change in a specific folder? We are using github steps: - label: 'Lint' command:…
Eloise
  • 109
  • 9
3
votes
1 answer

Buildkite and webhook to git repo

I have a Buildkite pipeline running, but we recently changed our git repo. How do I hook the new repo to an existing pipeline? I know you can change the repo url, but how about the webhook url? Can't seem to find the answer anywhere. Thanks for the…
Don Djoe
  • 705
  • 1
  • 10
  • 21
3
votes
1 answer

Custom Gradle Logging

My company uses Buildkite for our CI services. When the CI server triggers a build, all logs from the build are sent to Buildkite and made available through the UI. This is useful since it allows us to check how a build failed. Buildkite has a…
Mike Fougere
  • 157
  • 1
  • 6
2
votes
1 answer

Set pipeline-wide environment variables from a BuildKite command step?

I have a BuildKite pipeline with two command steps and a block step in-between. Among other things, the first command step gathers a bunch of information and puts it into environment variables. Then the block runs and asks the user to continue.…
Samuel Neff
  • 73,278
  • 17
  • 138
  • 182
2
votes
1 answer

Buildkite use shell variables in global hook

I used a variable in my pipeline script like this. # This shell is a pipeline shell script export container_id=`docker run -d MY_CONTAINER` then regardless of the success of the result, I want to remove my container using container_id, like…
user14467437
2
votes
2 answers

Month in Spanish is capitalized when running test in Buildkite, but not in my development environment

I have a test that started failing in Buildkite... Failure/Error: it { is_expected.to eq('Del 17 al 23 de febrero de 2019 (7 días)') } expected: "Del 17 al 23 de febrero de 2019 (7 días)" got: "Del 17 al 23 de Febrero de 2019…
Xavi
  • 583
  • 1
  • 7
  • 13
2
votes
1 answer

Getting ArgoCD and BuildKite notify each other

Sorry, this may sound a bit vague, but is there any way for the following make the following scenario happen? BuildKite builds a project Argo CD deploys BuildKite runs the test against the latest deployment. Is there a way for BuildKite to kick off…
2
votes
1 answer

How to get the output of Buildkite job run through the Buildkite REST API

I have a Buildkite pipeline: sample which I use to run Unit Tests on my Application: sampleapp Within the Buildkite application, I have set up a job - Unit Test which actually runs the unit tests through a script: unittest.sh The output of this…
Sumit
  • 2,189
  • 7
  • 32
  • 50
2
votes
1 answer

Buildkite Windows agent cannot find git executable

I'm having trouble getting the Windows build agent to run a build. The agent is unable to checkout my source code. (Im using Windows 10) See GitHub issue I am seeing the following error when running a build: Buildkite Error: There was an error…
1
vote
1 answer

BuildKite: Set environment variables for downstream steps

I would like to export a job input parameters as environment variables to the subsequent steps. According to the documentation, I can use env set: buildkite-agent env set [variable] Sets environment variables in the current job execution…
Marco
  • 588
  • 1
  • 4
  • 15
1
vote
1 answer

Execute Buildkite pipeline step only if a specific file has changed

I'm looking for a feature in Buildkite, similar to Gitlab's rules: change:, where a pipeline step is only executed if a specific file has been changed in the commit. Something like this would be ideal, but doesn't seem to be available: steps: …
DV82XL
  • 5,350
  • 5
  • 30
  • 59
1
vote
0 answers

Branch-specific environment variable in Buildkite CI/CD pipeline

I would like to define an environment variable called ENVIRONMENT as follows: if BUILDKITE_BRANCH == 'main', then ENVIRONMENT=production if BUILDKITE_BRANCH != 'main', then ENVIRONMENT=staging I'd like this variable to be defined at the pipeline…
DV82XL
  • 5,350
  • 5
  • 30
  • 59
1
vote
1 answer

How to use buildctl with localhost registry with tls

Im trying to use buildctl tool with Artifactory registry running on my localhost. I'm using the following command. buildctl build \ --frontend=dockerfile.v0 \ --local context=. \ --local dockerfile=. \ --output…
igor
  • 716
  • 1
  • 9
  • 27
1
vote
1 answer

gcloud.dataflow.flex-template.run unrecognized arguments: --temp-location

I'm providing both a staging and temp location via the gcloud dataflow flex-template run CLI. These are both valid optional flags (as per docs) and there isn't any mention that you should or shouldn't provide both. Why else would this error come…
1
vote
0 answers

buildkite syntax error when running code coverage on golang

I'm running the following make target in a buildkite step cover: go test ./... -coverprofile=coverage.out ccover=$$(go tool cover -func cover.out | grep total | grep -Eo '[0-9]+\.[0-9]+'); if [ $$(bc <<< "$$ccover < 20.0") -eq 1 ];…
tmp dev
  • 8,043
  • 16
  • 53
  • 108
1
2 3 4