mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
[ci] Backport Buildkite PR pipeline to 8.10 (#15431)
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: - #15402 - #15413 - #15415 - #15421 - https://github.com/elastic/ingest-dev/issues/1721 ## Release notes [rn:skip]
This commit is contained in:
parent
5a454c1269
commit
3a0aac850f
2 changed files with 41 additions and 0 deletions
30
.buildkite/pull_request_pipeline.yml
Normal file
30
.buildkite/pull_request_pipeline.yml
Normal file
|
@ -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
.buildkite/scripts/common/container-agent.sh
Normal file
11
.buildkite/scripts/common/container-agent.sh
Normal file
|
@ -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 -)"
|
Loading…
Add table
Add a link
Reference in a new issue