Skip to content

Commit 01e0cb3

Browse files
committed
Keep elastic-package install to run in all the other packages
1 parent b06f29c commit 01e0cb3

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.buildkite/scripts/common.sh

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,19 @@ build_zip_package() {
755755
return 0
756756
}
757757

758+
skip_installation_step() {
759+
local package=$1
760+
if ! is_serverless ; then
761+
return 1
762+
fi
763+
764+
if [[ "$package" == "security_detection_engine" ]]; then
765+
return 0
766+
fi
767+
768+
return 1
769+
}
770+
758771
install_package() {
759772
local package=$1
760773
echo "Install package: ${package}"
@@ -814,10 +827,7 @@ run_tests_package() {
814827
fi
815828
fi
816829

817-
if ! is_serverless ; then
818-
# Just run install command on non serverless projects,
819-
# "elastic-paackage test asset" command already installs the package via upload API
820-
# as it does "elastic-package install" command
830+
if ! skip_installation_step "${package}" ; then
821831
echo "--- [${package}] test installation"
822832
if ! install_package "${package}" ; then
823833
return 1

0 commit comments

Comments
 (0)