Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
ef44515
Add an empty schedule-daily job
mrodm Oct 3, 2023
554d5a0
Add first steps
mrodm Oct 3, 2023
dcabe5b
Avoid running all packages in Jenkins
mrodm Oct 3, 2023
ce9e0f1
Fix mage and gvm installation
mrodm Oct 3, 2023
e9af47e
test
mrodm Oct 3, 2023
884bed7
Add check-git-diff to check sources
mrodm Oct 4, 2023
a1882c1
Add check command
mrodm Oct 4, 2023
6dd38bd
Show links table info
mrodm Oct 4, 2023
81cd4f4
test
mrodm Oct 4, 2023
24f2596
Test with relative path from root repository directory
mrodm Oct 4, 2023
5234eaa
Set links file path in pre-command hook
mrodm Oct 4, 2023
7b36121
Set links file full path just if exists var
mrodm Oct 4, 2023
17ff5d1
Install yq and test spec version
mrodm Oct 4, 2023
22e414c
add missing double quotes
mrodm Oct 4, 2023
dea5662
Use variable for elastic-package binary path
mrodm Oct 4, 2023
87f110e
Add verbose to stack commands
mrodm Oct 4, 2023
14d5ed8
Added a draft version of publish package storage step
mrodm Oct 5, 2023
130e672
Change step key
mrodm Oct 5, 2023
93a4104
Add dependencies
mrodm Oct 5, 2023
a3a07ab
Change agent for publish packages
mrodm Oct 5, 2023
5b54f1c
Add debug
mrodm Oct 5, 2023
4dee0a9
Add go in publish_packages
mrodm Oct 5, 2023
d11957b
Check python
mrodm Oct 5, 2023
e9f8646
Add a noop command
mrodm Oct 5, 2023
d391576
Change directory before reading manifest
mrodm Oct 5, 2023
76cf40a
Fix variable name
mrodm Oct 5, 2023
7914b73
Remove kibana.version check from prepare stack
mrodm Oct 5, 2023
239a162
Add missing popd
mrodm Oct 5, 2023
85e394e
Fix condition about publishing step
mrodm Oct 10, 2023
e4b343b
Fix if syntax
mrodm Oct 10, 2023
14e90f5
Added isPrAffected method
mrodm Oct 11, 2023
7171b79
Add check is_pr_affected
mrodm Oct 11, 2023
3910340
Create kind cluster if needed
mrodm Oct 11, 2023
0773224
Change STACK_VERSION condition
mrodm Oct 11, 2023
faa583a
Report failure without exiting
mrodm Oct 11, 2023
bccd11e
Scaffolding for signing and publishing
mrodm Oct 11, 2023
2ef49f2
Collapse some outputs
mrodm Oct 11, 2023
a6ae16a
Fix vars
mrodm Oct 11, 2023
47c3a56
Fix vault command
mrodm Oct 11, 2023
33b1f25
Removed for now trigger jenkins scripts
mrodm Oct 11, 2023
f6a69a2
Run tests for some packages
mrodm Oct 11, 2023
3ea83bc
Debug messages
mrodm Oct 11, 2023
4b91ed5
Add environment vartiable
mrodm Oct 11, 2023
77e4a33
Add missing popd command
mrodm Oct 11, 2023
64969a1
Ensure kind cluster is deleted
mrodm Oct 11, 2023
1be824d
Add delete kind cluster step also after testing package
mrodm Oct 11, 2023
98fa4c0
Test with more packages
mrodm Oct 16, 2023
c636d6c
Move helper functions to common library
mrodm Oct 16, 2023
38cae12
Add check about capabilities
mrodm Oct 16, 2023
354d001
Add junit as artifacts and step
mrodm Oct 16, 2023
068447a
Add teardown per package
mrodm Oct 16, 2023
fb7e8d8
Add wait step to execute junit as last step
mrodm Oct 16, 2023
df41a60
Add integration name for teardown
mrodm Oct 16, 2023
67e076d
Remove output from pushd and popd
mrodm Oct 16, 2023
2ed855d
Check total packages examined
mrodm Oct 16, 2023
dc04c42
Allow to fail a package to continue with the following packages
mrodm Oct 16, 2023
3eadd98
Check errors
mrodm Oct 17, 2023
07a9aa1
Test without system tests
mrodm Oct 17, 2023
a8f4b2b
Add test-results xml as artifact paths
mrodm Oct 17, 2023
ed99dc4
Fix hooks
mrodm Oct 17, 2023
cf40072
Change depends_on temporarily
mrodm Oct 17, 2023
d2efeb3
Update key
mrodm Oct 17, 2023
570b14d
Fix typo in function name
mrodm Oct 17, 2023
0125ff9
Test with all packages
mrodm Oct 17, 2023
1234f6c
Add more info in annotations
mrodm Oct 17, 2023
e862f84
Add stack status
mrodm Oct 17, 2023
8cc8602
Sort folders
mrodm Oct 17, 2023
31fca7f
Test annotations
mrodm Oct 17, 2023
fb789c3
Add more debug messages
mrodm Oct 17, 2023
4868d6a
Fix typo
mrodm Oct 18, 2023
96480bc
Add variables for skipped and failed paths
mrodm Oct 18, 2023
2c95411
Fix parameter
mrodm Oct 18, 2023
53bb516
Update reason skipped
mrodm Oct 18, 2023
fdc9a8f
Add step for security
mrodm Oct 18, 2023
5aff1b5
Remove debug messages about capabilities
mrodm Oct 18, 2023
48d4933
Adapt annotations
mrodm Oct 18, 2023
541078f
Keep same message for all skipped packages
mrodm Oct 18, 2023
1146f00
Test with all packages
mrodm Oct 18, 2023
51817e6
Move message
mrodm Oct 18, 2023
f1f0e7f
Test just with observability
mrodm Oct 18, 2023
b0dac2a
Create elastic-package profile
mrodm Oct 18, 2023
0dcdb30
Add collapsed annotations
mrodm Oct 18, 2023
1565dfd
Revert test serverless
mrodm Oct 18, 2023
d6b5acf
Add empty lines to test markdown in collapsed annotations
mrodm Oct 18, 2023
e6eabb6
First test with serverless project
mrodm Oct 18, 2023
827f75c
Remove password from output
mrodm Oct 18, 2023
39ecda2
Test all packages in observability project
mrodm Oct 18, 2023
b3e1e6e
Add exit code if any package failed
mrodm Oct 18, 2023
87c00cf
Add returns to run_tests_package
mrodm Oct 18, 2023
d541590
Add more returns
mrodm Oct 18, 2023
cff6904
Test all packages observability
mrodm Oct 18, 2023
c5a14dc
Replace elastic-package
mrodm Oct 19, 2023
eb74208
Merge remote upstream/main into add_schedule_daily
mrodm Oct 19, 2023
a2ee7eb
Add new pipeline for serverless
mrodm Oct 19, 2023
cd70b87
Add security
mrodm Oct 19, 2023
333ad65
Remove test coverage for pipeline tests
mrodm Oct 19, 2023
1075019
Merge remote upstream/main into add_schedule_daily
mrodm Oct 19, 2023
a4123ca
Add project to profile
mrodm Oct 19, 2023
425b980
Add a new section header
mrodm Oct 19, 2023
f8d3ba9
Add timeout for steps
mrodm Oct 19, 2023
dd326d7
Add paths as artifacts
mrodm Oct 19, 2023
2217832
Upload safe logs
mrodm Oct 19, 2023
e2981b0
Update elastic-package
mrodm Oct 19, 2023
b7fd3cd
Add variable to upload safe logs
mrodm Oct 19, 2023
88eda5a
Change condition
mrodm Oct 19, 2023
57aebff
Test function safe logs
mrodm Oct 19, 2023
5d51991
Fix path for logs
mrodm Oct 19, 2023
439f9f0
Missing to export a variable
mrodm Oct 19, 2023
262cbe2
Remove test for upload safe logs
mrodm Oct 19, 2023
0f7d52d
Update elastic-package
mrodm Oct 19, 2023
3f7eeba
Test with all packages
mrodm Oct 19, 2023
e3716fd
Update elastic-package
mrodm Oct 23, 2023
293b70a
Add exception for fleet_server
mrodm Oct 23, 2023
f9b74bc
Add variables in case it is needed to send messages to slack
mrodm Oct 23, 2023
3e298e1
Add input steps
mrodm Oct 23, 2023
3a04e05
Rename script
mrodm Oct 23, 2023
e54eae6
Remove debug statement from Jenkins
mrodm Oct 23, 2023
1d1f460
Merge remote upstream/main into add_schedule_daily
mrodm Oct 23, 2023
d6d41d5
Add script to find oldest supported version
mrodm Oct 23, 2023
e389724
Set git pager as cat
mrodm Oct 23, 2023
df6fb5e
Remove unused variable
mrodm Oct 23, 2023
fd667b1
Re-order and add comments into common.sh
mrodm Oct 23, 2023
7dffa6e
Remove leftover
mrodm Oct 24, 2023
afaebcb
Add note about not using system tests
mrodm Oct 24, 2023
73febab
Remove extra characters
mrodm Oct 24, 2023
c0fbc57
Add context for info annotation
mrodm Oct 24, 2023
aae1db9
Move to a function code run in each iteration
mrodm Oct 24, 2023
1737413
Rename
mrodm Oct 24, 2023
41af02c
Add debug
mrodm Oct 24, 2023
8b3ddf4
Change continue for return - not in a loop anymore
mrodm Oct 24, 2023
e06e6dc
Update elastic-package
mrodm Oct 24, 2023
3b751a8
Add environment variable to avoid comapre results in pipeline tests
mrodm Oct 24, 2023
2c1a09b
Merge remote upstream/main into add_schedule_daily
mrodm Oct 24, 2023
74bd61c
Remove elastic-package replacement dep
mrodm Oct 24, 2023
8162b7d
Add TODOs and revisted scripts and hooks for new serverless pipeline
mrodm Oct 24, 2023
3030df2
Remove serverless steps from main pipeline (Pull Requests)
mrodm Oct 24, 2023
bf44534
Changes from code review
mrodm Oct 25, 2023
94fa971
Revert "Remove serverless steps from main pipeline (Pull Requests)"
mrodm Oct 25, 2023
22fc1ad
Fix target docker-compose path
mrodm Oct 25, 2023
5f95599
Apply suggestions from code review
mrodm Oct 26, 2023
7e0172a
Enable slack notifications to ingest-test-notifications
mrodm Oct 26, 2023
f7b74ae
Revert "Revert "Remove serverless steps from main pipeline (Pull Requ…
mrodm Oct 26, 2023
a9c3fa0
Change permissions of publish script
mrodm Oct 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .buildkite/hooks/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/bash

set -euo pipefail

checkout_merge() {
local target_branch=$1
local pr_commit=$2
local merge_branch=$3

if [[ -z "${target_branch}" ]]; then
echo "No pull request target branch"
exit 1
fi

git fetch -v origin "${target_branch}"
git checkout FETCH_HEAD
echo "Current branch: $(git rev-parse --abbrev-ref HEAD)"

# create temporal branch to merge the PR with the target branch
git checkout -b ${merge_branch}
echo "New branch created: $(git rev-parse --abbrev-ref HEAD)"

# set author identity so it can be run git merge
git config user.name "github-merged-pr-post-checkout"
git config user.email "auto-merge@buildkite"

git merge --no-edit "${BUILDKITE_COMMIT}" || {
local merge_result=$?
echo "Merge failed: ${merge_result}"
git merge --abort
exit ${merge_result}
}
}

pull_request="${BUILDKITE_PULL_REQUEST:-false}"

if [[ "${pull_request}" == "false" ]]; then
echo "Not a pull request, skipping"
exit 0
fi

TARGET_BRANCH="${BUILDKITE_PULL_REQUEST_BASE_BRANCH:-master}"
PR_COMMIT="${BUILDKITE_COMMIT}"
PR_ID=${BUILDKITE_PULL_REQUEST}
MERGE_BRANCH="pr_merge_${PR_ID}"

checkout_merge "${TARGET_BRANCH}" "${PR_COMMIT}" "${MERGE_BRANCH}"

echo "Commit information"

git --no-pager log --format=%B -n 1

# Ensure buildkite groups are rendered
echo ""
78 changes: 78 additions & 0 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
#!/bin/bash

source .buildkite/scripts/common.sh

set -euo pipefail

# Avoid any pager when running git commands
git config --global core.pager 'cat'

export UPLOAD_SAFE_LOGS=${UPLOAD_SAFE_LOGS:-"0"}
export BASE_DIR=$(pwd)
export GO_VERSION=$(cat .go-version)

export REPO_NAME=$(repo_name "${BUILDKITE_REPO}")
export TMP_FOLDER_TEMPLATE_BASE="tmp.${REPO_NAME}"
export TMP_FOLDER_TEMPLATE="${TMP_FOLDER_TEMPLATE_BASE}.XXXXXXXXX"

export REPO_BUILD_TAG="${REPO_NAME}/$(buildkite_pr_branch_build_id)"

JENKINS_API_TOKEN_PATH=kv/ci-shared/platform-ingest/jenkins_api_tokens
SIGNING_PACKAGES_GCS_CREDENTIALS_PATH=kv/ci-shared/platform-ingest/signing_packages_gcs_artifacts_credentials
PACKAGE_UPLOADER_GCS_CREDENTIALS_PATH=kv/ci-shared/platform-ingest/package_storage_uploader
PRIVATE_CI_GCS_CREDENTIALS_PATH=kv/ci-shared/platform-ingest/private_ci_artifacts_gcs_credentials

EC_TOKEN_PATH=kv/ci-shared/platform-ingest/platform-ingest-ec-qa
EC_DATA_PATH=secret/ci/elastic-integrations/ec_data

if [ -n "${ELASTIC_PACKAGE_LINKS_FILE_PATH+x}" ]; then
# first upload pipeline does not have the environment variables defined in the YAML
export ELASTIC_PACKAGE_LINKS_FILE_PATH=${BASE_DIR}/${ELASTIC_PACKAGE_LINKS_FILE_PATH}
fi

if [ ${BUILDKITE_PIPELINE_SLUG} == "integrations" ]; then
if [ ${BUILDKITE_STEP_KEY} == "publish-packages" ]; then
export JENKINS_USERNAME_SECRET=$(retry 5 vault kv get -field username ${JENKINS_API_TOKEN_PATH})
export JENKINS_HOST_SECRET=$(retry 5 vault kv get -field internal_ci_host ${JENKINS_API_TOKEN_PATH})
export JENKINS_TOKEN=$(retry 5 vault kv get -field internal_ci ${JENKINS_API_TOKEN_PATH})

# signing job
export SIGNING_PACKAGES_GCS_CREDENTIALS_SECRET=$(retry 5 vault kv get -field value ${SIGNING_PACKAGES_GCS_CREDENTIALS_PATH})

# publishing job
export PACKAGE_UPLOADER_GCS_CREDENTIALS_SECRET=$(retry 5 vault kv get -field value ${PACKAGE_UPLOADER_GCS_CREDENTIALS_PATH})
fi
fi

if [ ${BUILDKITE_PIPELINE_SLUG} == "integrations" ]; then
# FIXME: update condition depending on the pipeline steps triggered
if [[ ${BUILDKITE_STEP_KEY} == "test-integrations" ]]; then
export ELASTIC_PACKAGE_AWS_SECRET_KEY=$(retry 5 vault kv get -field secret_key ${AWS_SERVICE_ACCOUNT_SECRET_PATH})
export ELASTIC_PACKAGE_AWS_ACCESS_KEY=$(retry 5 vault kv get -field access_key ${AWS_SERVICE_ACCOUNT_SECRET_PATH})

export PRIVATE_CI_GCS_CREDENTIALS_SECRET=$(retry 5 vault kv get -field plaintext ${PRIVATE_CI_GCS_CREDENTIALS_PATH})
export JOB_GCS_BUCKET_INTERNAL="fleet-ci-temp-internal"

# Environment variables required by the service deployer
export AWS_SECRET_ACCESS_KEY=${ELASTIC_PACKAGE_AWS_SECRET_KEY}
export AWS_ACCESS_KEY_ID=${ELASTIC_PACKAGE_AWS_ACCESS_KEY}
fi
fi

if [ ${BUILDKITE_PIPELINE_SLUG} == "integrations-serverless" ]; then
if [[ ${BUILDKITE_STEP_KEY} == "test-integrations-serverless-project" ]]; then
export ELASTIC_PACKAGE_AWS_SECRET_KEY=$(retry 5 vault kv get -field secret_key ${AWS_SERVICE_ACCOUNT_SECRET_PATH})
export ELASTIC_PACKAGE_AWS_ACCESS_KEY=$(retry 5 vault kv get -field access_key ${AWS_SERVICE_ACCOUNT_SECRET_PATH})

export PRIVATE_CI_GCS_CREDENTIALS_SECRET=$(retry 5 vault kv get -field plaintext ${PRIVATE_CI_GCS_CREDENTIALS_PATH})
export JOB_GCS_BUCKET_INTERNAL="fleet-ci-temp-internal"

# Environment variables required by the service deployer
export AWS_SECRET_ACCESS_KEY=${ELASTIC_PACKAGE_AWS_SECRET_KEY}
export AWS_ACCESS_KEY_ID=${ELASTIC_PACKAGE_AWS_ACCESS_KEY}

export EC_API_KEY_SECRET=$(retry 5 vault kv get -field apiKey ${EC_TOKEN_PATH})
export EC_HOST_SECRET=$(retry 5 vault kv get -field url ${EC_TOKEN_PATH})
export EC_REGION_SECRET=$(retry 5 vault read -field region_qa ${EC_DATA_PATH})
fi
fi
51 changes: 51 additions & 0 deletions .buildkite/hooks/pre-exit
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/bash

source .buildkite/scripts/common.sh

set -euo pipefail

if [[ "$BUILDKITE_PIPELINE_SLUG" == "integrations" ]]; then
# FIXME: update condition depending on the pipeline steps triggered
if [[ "$BUILDKITE_STEP_KEY" == "test-integrations" ]]; then
unset ELASTIC_PACKAGE_AWS_ACCESS_KEY
unset ELASTIC_PACKAGE_AWS_SECRET_KEY
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY

# Ensure that kind cluster is deleted
delete_kind_cluster

# Ensure elastic stack is stopped
if [ -f ${ELASTIC_PACKAGE_BIN} ]; then
echo "--- Take down the Elastic stack"
${ELASTIC_PACKAGE_BIN} stack down -v
fi
fi
fi

if [[ "$BUILDKITE_PIPELINE_SLUG" == "integrations-serverless" ]]; then
if [[ "$BUILDKITE_STEP_KEY" == "test-integrations-serverless-project" ]]; then
unset ELASTIC_PACKAGE_AWS_ACCESS_KEY
unset ELASTIC_PACKAGE_AWS_SECRET_KEY
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY

# Ensure that kind cluster is deleted
delete_kind_cluster

# Ensure elastic stack is stopped
if [ -f ${ELASTIC_PACKAGE_BIN} ]; then
echo "--- Take down the Elastic stack"
export EC_API_KEY=${EC_API_KEY_SECRET}
export EC_HOST=${EC_HOST_SECRET}

${ELASTIC_PACKAGE_BIN} stack down -v

unset EC_API_KEY
unset EC_HOST
fi
fi
fi

unset_secrets
cleanup
36 changes: 36 additions & 0 deletions .buildkite/pipeline.schedule-daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
name: integrations-schedule-daily

env:
SETUP_GVM_VERSION: "v0.5.1"
LINUX_AGENT_IMAGE: "golang:${GO_VERSION}"

# The pipeline is triggered by the scheduler every day
steps:
- label: ":white_check_mark: Check go sources"
key: "check"
command: ".buildkite/scripts/check_sources.sh"
agents:
image: "${LINUX_AGENT_IMAGE}"
cpu: "8"
memory: "4G"

- label: "Check integrations in serverless - project: Observability"
key: "trigger-integrations-serverless-obs"
trigger: "integrations-serverless"
build:
env:
SERVERLESS_PROJECT: observability
depends_on:
- step: "check"
allow_failure: false

- label: "Check integrations in serverless - project: Security"
key: "trigger-integrations-serverless-security"
trigger: "integrations-serverless"
build:
env:
SERVERLESS_PROJECT: security
depends_on:
- step: "check"
allow_failure: false
73 changes: 73 additions & 0 deletions .buildkite/pipeline.serverless.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json

env:
SETUP_GVM_VERSION: "v0.5.1"
LINUX_AGENT_IMAGE: "golang:${GO_VERSION}"
DOCKER_COMPOSE_VERSION: "v2.17.2"
KIND_VERSION: 'v0.20.0'
K8S_VERSION: 'v1.27.3'
YQ_VERSION: 'v4.35.2'
# Elastic package settings
# Manage docker output/logs
ELASTIC_PACKAGE_COMPOSE_DISABLE_ANSI: "true"
ELASTIC_PACKAGE_COMPOSE_DISABLE_PULL_PROGRESS_INFORMATION: "true"
# Default license to use by `elastic-package build`
ELASTIC_PACKAGE_REPOSITORY_LICENSE: "licenses/Elastic-2.0.txt"
# Link definitions path (full path to be set in the corresponding step)
ELASTIC_PACKAGE_LINKS_FILE_PATH: "links_table.yml"
# Disable comparison of results in pipeline tests to avoid errors related to GeoIP fields
ELASTIC_PACKAGE_SERVERLESS_PIPELINE_TEST_DISABLE_COMPARE_RESULTS: "true"

steps:
- input: "Input values for the variables"
key: "input-variables"
fields:
- select: "SERVERLESS_PROJECT"
key: "SERVERLESS_PROJECT"
options:
- label: "observability"
value: "observability"
- label: "security"
value: "security"
default: "observability"
if: "build.source == 'ui'"

- wait: ~
if: "build.source == 'ui'"
allow_dependency_failure: false

- label: ":white_check_mark: Check go sources"
key: "check"
command: ".buildkite/scripts/check_sources.sh"
agents:
image: "${LINUX_AGENT_IMAGE}"
cpu: "8"
memory: "4G"

- label: "Check integrations in serverless"
key: "test-integrations-serverless-project"
command: ".buildkite/scripts/test_integrations_with_serverless.sh"
timeout_in_minutes: 120
env:
SERVERLESS: true
FORCE_CHECK_ALL: true
UPLOAD_SAFE_LOGS: 1
agents:
provider: "gcp"
artifact_paths:
- "build/test-results/*.xml"
# - "build/elastic-stack-dump/*/logs/*.log"
# - "build/elastic-stack-dump/*/logs/fleet-server-internal/**/*"
depends_on:
- step: "check"
allow_failure: false

- wait: ~
continue_on_failure: true

- label: ":junit: Junit annotate"
plugins:
- junit-annotate#v2.4.1:
artifacts: "build/test-results/*.xml"
agents:
provider: "gcp" # junit plugin requires docker
54 changes: 52 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json

env:
SETUP_GVM_VERSION: "v0.5.1"
LINUX_AGENT_IMAGE: "golang:${GO_VERSION}"
DOCKER_COMPOSE_VERSION: "v2.17.2"
KIND_VERSION: 'v0.20.0'
K8S_VERSION: 'v1.27.3'
YQ_VERSION: 'v4.35.2'
# Elastic package settings
# Manage docker output/logs
ELASTIC_PACKAGE_COMPOSE_DISABLE_ANSI: "true"
ELASTIC_PACKAGE_COMPOSE_DISABLE_PULL_PROGRESS_INFORMATION: "true"
# Default license to use by `elastic-package build`
ELASTIC_PACKAGE_REPOSITORY_LICENSE: "licenses/Elastic-2.0.txt"
# Link definitions path (full path to be set in the corresponding step)
ELASTIC_PACKAGE_LINKS_FILE_PATH: "links_table.yml"
# Disable comparison of results in pipeline tests to avoid errors related to GeoIP fields
ELASTIC_PACKAGE_SERVERLESS_PIPELINE_TEST_DISABLE_COMPARE_RESULTS: "true"

steps:
- label: "Example test"
command: echo "Hello!"
- label: ":white_check_mark: Check go sources"
key: "check"
command: ".buildkite/scripts/check_sources.sh"
agents:
image: "${LINUX_AGENT_IMAGE}"
cpu: "8"
memory: "4G"

# TODO: Pending to migrate stages from https://github.com/elastic/integrations/blob/993537b80456edf2035f2a4826031841116c2019/.ci/Jenkinsfile
# - label: "Publish packages - INCOMPLETE"
# key: "publish-packages"
# command: ".buildkite/scripts/publish_packages.sh" # TODO: missing signature and publishing loops
# agents:
# provider: "gcp"
# depends_on:
# - step: "check"
# allow_failure: false

# - label: "Trigger integrations"
# key: "trigger-integrations"
# command: ".buildkite/scripts/trigger_integrations_in_parallel.sh" # TODO: missing script
# depends_on:
# - step: "publish-packages"
# allow_failure: false

# - wait: ~
# continue_on_failure: true

# - label: ":junit: Junit annotate"
# plugins:
# - junit-annotate#v2.4.1:
# artifacts: "build/test-results/*.xml"
# agents:
# provider: "gcp" # junit plugin requires docker
Loading