diff --git a/.expeditor/buildkite/artifact.habitat.test.ps1 b/.expeditor/buildkite/artifact.habitat.test.ps1 index f0aea2d56..59e658e9f 100755 --- a/.expeditor/buildkite/artifact.habitat.test.ps1 +++ b/.expeditor/buildkite/artifact.habitat.test.ps1 @@ -7,7 +7,6 @@ $PSDefaultParameterValues['*:ErrorAction']='Stop' $ErrorActionPreference = 'Stop' $env:HAB_BLDR_CHANNEL = 'LTS-2024' $env:HAB_REFRESH_CHANNEL = "LTS-2024" -$env:HAB_ORIGIN = 'ci' $env:CHEF_LICENSE = 'accept-no-persist' $env:HAB_LICENSE = 'accept-no-persist' $Plan = 'ohai' @@ -58,6 +57,9 @@ finally { Write-Host ":habicat: I think I have the version I need to build." } +# Set HAB_ORIGIN after Habitat installation +Write-Host "HAB_ORIGIN set to 'ci' after installation." +$env:HAB_ORIGIN = 'ci' Write-Host "--- Generating fake origin key" hab origin key generate $env:HAB_ORIGIN diff --git a/.expeditor/buildkite/artifact.habitat.test.sh b/.expeditor/buildkite/artifact.habitat.test.sh index e816502b8..c43547ac8 100755 --- a/.expeditor/buildkite/artifact.habitat.test.sh +++ b/.expeditor/buildkite/artifact.habitat.test.sh @@ -2,7 +2,6 @@ set -eo pipefail -export HAB_ORIGIN='ci' export PLAN='ohai' export CHEF_LICENSE="accept-no-persist" export HAB_LICENSE="accept-no-persist" @@ -41,6 +40,10 @@ echo "--- Installing Habitat" id -a curl https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.sh | bash +# Set HAB_ORIGIN after Habitat installation +echo "--- Setting HAB_ORIGIN to 'ci' after installation" +export HAB_ORIGIN='ci' + echo "--- :key: Generating fake origin key" hab origin key generate "$HAB_ORIGIN"