From 9df76c101e4b055636ef5fa16f274f3e9c315243 Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Tue, 14 Apr 2026 12:39:44 -0500 Subject: [PATCH] feature: added build host setup handling cfengine_role env var for policy use We can add this as a platform specific env var in jenkins config to trigger different types of build hosts. In this case we are enabling our mingw build host setup. Ticket: ENT-13862 Changelog: none --- ci/setup-cfengine-build-host.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/setup-cfengine-build-host.sh b/ci/setup-cfengine-build-host.sh index 8f17b6c3e..c1d0f9992 100755 --- a/ci/setup-cfengine-build-host.sh +++ b/ci/setup-cfengine-build-host.sh @@ -2,6 +2,11 @@ shopt -s expand_aliases thisdir="$(dirname "$0")" +# handle env cfengine_role +if [ -n "$cfengine_role" ]; then + touch /etc/cfengine-"$cfengine_role".flag +fi + # install needed packages and software for a build host set -e if [ "$(id -u)" != "0" ]; then