-
Notifications
You must be signed in to change notification settings - Fork 502
[buildkite] Add new Buildkite pipelines to test packages with Serverless #8072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
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 554d5a0
Add first steps
mrodm dcabe5b
Avoid running all packages in Jenkins
mrodm ce9e0f1
Fix mage and gvm installation
mrodm e9af47e
test
mrodm 884bed7
Add check-git-diff to check sources
mrodm a1882c1
Add check command
mrodm 6dd38bd
Show links table info
mrodm 81cd4f4
test
mrodm 24f2596
Test with relative path from root repository directory
mrodm 5234eaa
Set links file path in pre-command hook
mrodm 7b36121
Set links file full path just if exists var
mrodm 17ff5d1
Install yq and test spec version
mrodm 22e414c
add missing double quotes
mrodm dea5662
Use variable for elastic-package binary path
mrodm 87f110e
Add verbose to stack commands
mrodm 14d5ed8
Added a draft version of publish package storage step
mrodm 130e672
Change step key
mrodm 93a4104
Add dependencies
mrodm a3a07ab
Change agent for publish packages
mrodm 5b54f1c
Add debug
mrodm 4dee0a9
Add go in publish_packages
mrodm d11957b
Check python
mrodm e9f8646
Add a noop command
mrodm d391576
Change directory before reading manifest
mrodm 76cf40a
Fix variable name
mrodm 7914b73
Remove kibana.version check from prepare stack
mrodm 239a162
Add missing popd
mrodm 85e394e
Fix condition about publishing step
mrodm e4b343b
Fix if syntax
mrodm 14e90f5
Added isPrAffected method
mrodm 7171b79
Add check is_pr_affected
mrodm 3910340
Create kind cluster if needed
mrodm 0773224
Change STACK_VERSION condition
mrodm faa583a
Report failure without exiting
mrodm bccd11e
Scaffolding for signing and publishing
mrodm 2ef49f2
Collapse some outputs
mrodm a6ae16a
Fix vars
mrodm 47c3a56
Fix vault command
mrodm 33b1f25
Removed for now trigger jenkins scripts
mrodm f6a69a2
Run tests for some packages
mrodm 3ea83bc
Debug messages
mrodm 4b91ed5
Add environment vartiable
mrodm 77e4a33
Add missing popd command
mrodm 64969a1
Ensure kind cluster is deleted
mrodm 1be824d
Add delete kind cluster step also after testing package
mrodm 98fa4c0
Test with more packages
mrodm c636d6c
Move helper functions to common library
mrodm 38cae12
Add check about capabilities
mrodm 354d001
Add junit as artifacts and step
mrodm 068447a
Add teardown per package
mrodm fb7e8d8
Add wait step to execute junit as last step
mrodm df41a60
Add integration name for teardown
mrodm 67e076d
Remove output from pushd and popd
mrodm 2ed855d
Check total packages examined
mrodm dc04c42
Allow to fail a package to continue with the following packages
mrodm 3eadd98
Check errors
mrodm 07a9aa1
Test without system tests
mrodm a8f4b2b
Add test-results xml as artifact paths
mrodm ed99dc4
Fix hooks
mrodm cf40072
Change depends_on temporarily
mrodm d2efeb3
Update key
mrodm 570b14d
Fix typo in function name
mrodm 0125ff9
Test with all packages
mrodm 1234f6c
Add more info in annotations
mrodm e862f84
Add stack status
mrodm 8cc8602
Sort folders
mrodm 31fca7f
Test annotations
mrodm fb789c3
Add more debug messages
mrodm 4868d6a
Fix typo
mrodm 96480bc
Add variables for skipped and failed paths
mrodm 2c95411
Fix parameter
mrodm 53bb516
Update reason skipped
mrodm fdc9a8f
Add step for security
mrodm 5aff1b5
Remove debug messages about capabilities
mrodm 48d4933
Adapt annotations
mrodm 541078f
Keep same message for all skipped packages
mrodm 1146f00
Test with all packages
mrodm 51817e6
Move message
mrodm f1f0e7f
Test just with observability
mrodm b0dac2a
Create elastic-package profile
mrodm 0dcdb30
Add collapsed annotations
mrodm 1565dfd
Revert test serverless
mrodm d6b5acf
Add empty lines to test markdown in collapsed annotations
mrodm e6eabb6
First test with serverless project
mrodm 827f75c
Remove password from output
mrodm 39ecda2
Test all packages in observability project
mrodm b3e1e6e
Add exit code if any package failed
mrodm 87c00cf
Add returns to run_tests_package
mrodm d541590
Add more returns
mrodm cff6904
Test all packages observability
mrodm c5a14dc
Replace elastic-package
mrodm eb74208
Merge remote upstream/main into add_schedule_daily
mrodm a2ee7eb
Add new pipeline for serverless
mrodm cd70b87
Add security
mrodm 333ad65
Remove test coverage for pipeline tests
mrodm 1075019
Merge remote upstream/main into add_schedule_daily
mrodm a4123ca
Add project to profile
mrodm 425b980
Add a new section header
mrodm f8d3ba9
Add timeout for steps
mrodm dd326d7
Add paths as artifacts
mrodm 2217832
Upload safe logs
mrodm e2981b0
Update elastic-package
mrodm b7fd3cd
Add variable to upload safe logs
mrodm 88eda5a
Change condition
mrodm 57aebff
Test function safe logs
mrodm 5d51991
Fix path for logs
mrodm 439f9f0
Missing to export a variable
mrodm 262cbe2
Remove test for upload safe logs
mrodm 0f7d52d
Update elastic-package
mrodm 3f7eeba
Test with all packages
mrodm e3716fd
Update elastic-package
mrodm 293b70a
Add exception for fleet_server
mrodm f9b74bc
Add variables in case it is needed to send messages to slack
mrodm 3e298e1
Add input steps
mrodm 3a04e05
Rename script
mrodm e54eae6
Remove debug statement from Jenkins
mrodm 1d1f460
Merge remote upstream/main into add_schedule_daily
mrodm d6d41d5
Add script to find oldest supported version
mrodm e389724
Set git pager as cat
mrodm df6fb5e
Remove unused variable
mrodm fd667b1
Re-order and add comments into common.sh
mrodm 7dffa6e
Remove leftover
mrodm afaebcb
Add note about not using system tests
mrodm 73febab
Remove extra characters
mrodm c0fbc57
Add context for info annotation
mrodm aae1db9
Move to a function code run in each iteration
mrodm 1737413
Rename
mrodm 41af02c
Add debug
mrodm 8b3ddf4
Change continue for return - not in a loop anymore
mrodm e06e6dc
Update elastic-package
mrodm 3b751a8
Add environment variable to avoid comapre results in pipeline tests
mrodm 2c1a09b
Merge remote upstream/main into add_schedule_daily
mrodm 74bd61c
Remove elastic-package replacement dep
mrodm 8162b7d
Add TODOs and revisted scripts and hooks for new serverless pipeline
mrodm 3030df2
Remove serverless steps from main pipeline (Pull Requests)
mrodm bf44534
Changes from code review
mrodm 94fa971
Revert "Remove serverless steps from main pipeline (Pull Requests)"
mrodm 22fc1ad
Fix target docker-compose path
mrodm 5f95599
Apply suggestions from code review
mrodm 7e0172a
Enable slack notifications to ingest-test-notifications
mrodm f7b74ae
Revert "Revert "Remove serverless steps from main pipeline (Pull Requ…
mrodm a9c3fa0
Change permissions of publish script
mrodm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| 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 "" |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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 | ||
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.