Skip to content

Commit

Permalink
Fixed rule management and upload metadata md
Browse files Browse the repository at this point in the history
  • Loading branch information
dkirchan committed May 20, 2024
1 parent 5e9730c commit 275781f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ steps:

- label: Running rule_creation:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_creation:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_creation:qa:serverless:release
key: rule_creation:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -108,7 +108,7 @@ steps:

- label: Running rule_creation:essentials:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_creation:essentials:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_creation:essentials:qa:serverless:release
key: rule_creation:essentials:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -140,7 +140,7 @@ steps:

- label: Running rule_update:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_update:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_update:qa:serverless:release
key: rule_update:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -172,7 +172,7 @@ steps:

- label: Running rule_update:essentials:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_update:essentials:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_update:essentials:qa:serverless:release
key: rule_update:essentials:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -204,7 +204,7 @@ steps:

- label: Running rule_patch:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_patch:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_patch:qa:serverless:release
key: rule_patch:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -236,7 +236,7 @@ steps:

- label: Running rule_patch:essentials:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_patch:essentials:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_patch:essentials:qa:serverless:release
key: rule_patch:essentials:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -268,7 +268,7 @@ steps:

- label: Running prebuilt_rules_management:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh prebuilt_rules_management:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh prebuilt_rules_management:qa:serverless:release
key: prebuilt_rules_management:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -300,7 +300,7 @@ steps:

- label: Running prebuilt_rules_bundled_prebuilt_rules_package:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh prebuilt_rules_bundled_prebuilt_rules_package:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh prebuilt_rules_bundled_prebuilt_rules_package:qa:serverless:release
key: prebuilt_rules_bundled_prebuilt_rules_package:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -332,7 +332,7 @@ steps:

- label: Running prebuilt_rules_large_prebuilt_rules_package:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh prebuilt_rules_large_prebuilt_rules_package:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh prebuilt_rules_large_prebuilt_rules_package:qa:serverless:release
key: prebuilt_rules_large_prebuilt_rules_package:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -364,7 +364,7 @@ steps:

- label: Running prebuilt_rules_update_prebuilt_rules_package:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh prebuilt_rules_update_prebuilt_rules_package:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh prebuilt_rules_update_prebuilt_rules_package:qa:serverless:release
key: prebuilt_rules_update_prebuilt_rules_package:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -396,7 +396,7 @@ steps:

- label: Running rule_delete:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_delete:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_delete:qa:serverless:release
key: rule_delete:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -428,7 +428,7 @@ steps:

- label: Running rule_delete:essentials:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_delete:essentials:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_delete:essentials:qa:serverless:release
key: rule_delete:essentials:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -460,7 +460,7 @@ steps:

- label: Running rule_import_export:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_import_export:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_import_export:qa:serverless:release
key: rule_import_export:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -492,7 +492,7 @@ steps:

- label: Running rule_import_export:essentials:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_import_export:essentials:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_import_export:essentials:qa:serverless:release
key: rule_import_export:essentials:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -524,7 +524,7 @@ steps:

- label: Running rule_management:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_management:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_management:qa:serverless:release
key: rule_management:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -556,7 +556,7 @@ steps:

- label: Running rule_bulk_actions:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_bulk_actions:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_bulk_actions:qa:serverless:release
key: rule_bulk_actions:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -588,7 +588,7 @@ steps:

- label: Running rule_read:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_read:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_read:qa:serverless:release
key: rule_read:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -620,7 +620,7 @@ steps:

- label: Running rule_read:essentials:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rule_read:essentials:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rule_read:essentials:qa:serverless:release
key: rule_read:essentials:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down Expand Up @@ -652,7 +652,7 @@ steps:

- label: Running rules_management:essentials:qa:serverless:release
if: "build.env('KIBANA_MKI_QUALITY_GATE') == '1'"
command: .buildkite/scripts/pipelines/security_soluion_quality_gate/api_integration/api-integration-tests.sh rules_management:essentials:qa:serverless:release
command: .buildkite/scripts/pipelines/security_solution_quality_gate/api_integration/api-integration-tests.sh rules_management:essentials:qa:serverless:release
key: rules_management:essentials:qa:serverless:release
agents:
image: family/kibana-ubuntu-2004
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/bin/bash

# Assume the environment variable is named MY_VAR
if [ "$KIBANA_MKI_QUALITY_GATE" == "1" ]; then
echo "Triggered by quality gate!"
triggered_by="Serverless Quality Gate."
else
echo "MY_VAR is not '1'"
echo "Triggered by Serverless Kibana Periodic Pipeline."
triggered_by="Serverless Kibana Periodic Pipeline."
fi

Expand All @@ -25,11 +24,14 @@ vcs_url=$(docker inspect ${KBN_IMAGE} | jq -r '.[0].Config.Labels."org.label-sch
version=$(docker inspect ${KBN_IMAGE} | jq -r '.[0].Config.Labels."org.label-schema.version"')

markdown_text="""
# Triggered by: $triggered_by
#### $triggered_by
- Triggered from buildkite pipeline : $BUILDKITE_TRIGGERED_FROM_BUILD_PIPELINE_SLUG
- Triggered from build : $BUILDKITE_TRIGGERED_FROM_BUILD_NUMBER
---
# Kibana Container Metadata
#### Kibana Container Metadata
- Build Date : $build_date
- Github Commit Hash : $vcs_ref
- Github Repo : $vcs_url
Expand Down

0 comments on commit 275781f

Please sign in to comment.