summaryrefslogtreecommitdiff
path: root/.buildkite/build-test-omnibus.sh
diff options
context:
space:
mode:
Diffstat (limited to '.buildkite/build-test-omnibus.sh')
-rwxr-xr-x.buildkite/build-test-omnibus.sh24
1 files changed, 18 insertions, 6 deletions
diff --git a/.buildkite/build-test-omnibus.sh b/.buildkite/build-test-omnibus.sh
index ddf4c9533f..ef77287e5b 100755
--- a/.buildkite/build-test-omnibus.sh
+++ b/.buildkite/build-test-omnibus.sh
@@ -11,6 +11,12 @@ FILTER="${OMNIBUS_FILTER:=*}"
# array of all container platforms in the format test-platform:build-platform
container_platforms=("amazon-2:centos-7" "centos-6:centos-6" "centos-7:centos-7" "centos-8:centos-8" "rhel-9:rhel-9" "debian-9:debian-9" "debian-10:debian-9" "debian-11:debian-9" "ubuntu-1604:ubuntu-1604" "ubuntu-1804:ubuntu-1604" "ubuntu-2004:ubuntu-1604" "ubuntu-2204:ubuntu-1604" "sles-15:sles-15" "windows-2019:windows-2019")
+# add rest of windows platforms to tests, if not on chef-oss org
+if [ $BUILDKITE_ORGANIZATION_SLUG != "chef-oss" ]
+then
+ container_platforms=( "${container_platforms[@]}" "windows-2012:windows-2019" "windows-2012r2:windows-2019" "windows-2016:windows-2019" "windows-2022:windows-2019" "windows-10:windows-2019" "windows-11:windows-2019" )
+fi
+
# array of all esoteric platforms in the format test-platform:build-platform
esoteric_platforms=("aix-7.1-powerpc:aix-7.1-powerpc" "aix-7.2-powerpc:aix-7.1-powerpc" "aix-7.3-powerpc:aix-7.1-powerpc" "el-7-ppc64:el-7-ppc64" "el-7-ppc64le:el-7-ppc64le" "el-7-s390x:el-7-s390x" "el-8-s390x:el-7-s390x" "freebsd-12-amd64:freebsd-12-amd64" "freebsd-13-amd64:freebsd-12-amd64" "mac_os_x-10.15-x86_64:mac_os_x-10.15-x86_64" "mac_os_x-11-x86_64:mac_os_x-10.15-x86_64" "mac_os_x-12-x86_64:mac_os_x-10.15-x86_64" "mac_os_x-11-arm64:mac_os_x-11-arm64" "mac_os_x-12-arm64:mac_os_x-11-arm64" "solaris2-5.11-i386:solaris2-5.11-i386" "solaris2-5.11-sparc:solaris2-5.11-sparc" "sles-12-s390x:sles-12-s390x" "sles-15-s390x:sles-12-s390x")
@@ -190,7 +196,7 @@ then
echo " label: \":artifactory: Create Build Record\""
echo " plugins:"
echo " - chef/omnibus#v0.2.83:"
- echo " create-build-record: chef"
+ echo " create-build-record: chef"
fi
echo "- wait: ~"
@@ -204,6 +210,7 @@ then
echo "- env:"
echo " OMNIBUS_BUILDER_KEY: build-${platform#*:}"
echo " label: \":mag::docker: ${platform%:*}\""
+ echo " key: test-${platform%:*}"
echo " retry:"
echo " automatic:"
echo " limit: 1"
@@ -220,14 +227,19 @@ then
echo " timeout_in_minutes: 60"
else
echo "- env:"
- echo " OMNIBUS_BUILDER_KEY: build-windows-2019"
- echo " key: test-windows-2019"
- echo ' label: ":mag::windows: windows-2019"'
+ echo " OMNIBUS_BUILDER_KEY: build-${platform#*:}"
+ echo " label: \":mag::windows: ${platform%:*}\""
+ echo " key: test-${platform%:*}"
echo " retry:"
echo " automatic:"
echo " limit: 1"
echo " agents:"
- echo " queue: default-windows-2019-privileged"
+ if [ $BUILDKITE_ORGANIZATION_SLUG == "chef-oss" ]
+ then
+ echo " queue: default-${platform%:*}-privileged"
+ else
+ echo " queue: omnibus-${platform%:*}-x86_64"
+ fi
echo " commands:"
echo " - ./.expeditor/scripts/download_built_omnibus_pkgs.ps1"
echo " - ./omnibus/omnibus-test.ps1"
@@ -293,5 +305,5 @@ then
echo " label: \":artifactory: Promote to Current\""
echo " plugins:"
echo " - chef/omnibus#v0.2.83:"
- echo " promote: chef"
+ echo " promote: chef"
fi \ No newline at end of file