Skip to content

Commit

Permalink
[ci] Backport Buildkite PR pipeline to 8.11
Browse files Browse the repository at this point in the history
This is a backport of the initial Pull Request pipeline for Buildkite.

While currently we haven't migrated all PR jobs from Jenkins, this is
needed so PRs against non `main` branches don't fail this step (also
giving us the possibility to test functionality against non `main`
branches).

Relates:

- elastic#15402
- elastic#15413
- elastic#15415
- elastic#15421
- elastic/ingest-dev#1721
  • Loading branch information
dliappis committed Oct 11, 2023
1 parent be441f0 commit 064ffb0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .buildkite/pull_request_pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json

steps:
- label: ":passport_control: License check"
key: "license-check"
agents:
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci"
cpu: "4"
memory: "6Gi"
ephemeralStorage: "100Gi"
command: |
set -euo pipefail
source .buildkite/scripts/common/container-agent.sh
export JRUBY_OPTS="-J-Xmx1g"
export GRADLE_OPTS="-Xmx2g -Dorg.gradle.daemon=false -Dorg.gradle.logging.level=info"
ci/license_check.sh -m 4G
- label: ":rspec: Ruby unit tests"
key: "ruby-unit-tests"
agents:
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci"
cpu: "4"
memory: "8Gi"
ephemeralStorage: "100Gi"
command: |
set -euo pipefail
source .buildkite/scripts/common/container-agent.sh
ci/unit_tests.sh ruby
11 changes: 11 additions & 0 deletions .buildkite/scripts/common/container-agent.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

# ********************************************************
# This file contains prerequisite bootstrap invocations
# required for Logstash CI when using containerized agents
# ********************************************************

set -euo pipefail

export PATH="/usr/local/rbenv/bin:$PATH"
eval "$(rbenv init -)"

0 comments on commit 064ffb0

Please sign in to comment.