From 375e26b7d965f429ce5c329da6ce86045b2cb222 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Sun, 2 Feb 2025 19:30:38 +0530 Subject: [PATCH] added HAB_BLDR_CHANNEL env as the build pipeline still using old hab version and updated config for a symantec version promote and publish Signed-off-by: nikhil2611 --- .expeditor/build.habitat.yml | 3 --- .expeditor/buildkite/artifact.habitat.test.ps1 | 2 ++ .expeditor/buildkite/artifact.habitat.test.sh | 2 ++ .expeditor/config.yml | 5 +---- .expeditor/habitat-test.pipeline.yml | 2 -- habitat/plan.ps1 | 2 ++ habitat/plan.sh | 2 ++ 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.expeditor/build.habitat.yml b/.expeditor/build.habitat.yml index d28cae6fa..9c2d3d7a2 100644 --- a/.expeditor/build.habitat.yml +++ b/.expeditor/build.habitat.yml @@ -1,7 +1,4 @@ --- -env: - HAB_REFRESH_CHANNEL: "LTS-2024" - origin: chef expeditor: diff --git a/.expeditor/buildkite/artifact.habitat.test.ps1 b/.expeditor/buildkite/artifact.habitat.test.ps1 index 875c45757..f0aea2d56 100755 --- a/.expeditor/buildkite/artifact.habitat.test.ps1 +++ b/.expeditor/buildkite/artifact.habitat.test.ps1 @@ -5,6 +5,8 @@ # TODO: Set-StrictMode -Version Latest $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' diff --git a/.expeditor/buildkite/artifact.habitat.test.sh b/.expeditor/buildkite/artifact.habitat.test.sh index 52d72dc0e..e816502b8 100755 --- a/.expeditor/buildkite/artifact.habitat.test.sh +++ b/.expeditor/buildkite/artifact.habitat.test.sh @@ -6,6 +6,8 @@ export HAB_ORIGIN='ci' export PLAN='ohai' export CHEF_LICENSE="accept-no-persist" export HAB_LICENSE="accept-no-persist" +export HAB_BLDR_CHANNEL='LTS-2024' +export HAB_REFRESH_CHANNEL="LTS-2024" echo "--- checking if git is installed" if ! command -v git &> /dev/null; then diff --git a/.expeditor/config.yml b/.expeditor/config.yml index a57525369..dd084b003 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -79,12 +79,9 @@ subscriptions: - "Expeditor: Skip Habitat" - "Expeditor: Skip All" + # this works for symantec version promote - workload: project_promoted:{{agent_id}}:* actions: - built_in:rollover_changelog - - # Subscribe to the promotion of the unstable channel to stable(chef-dke-lts2024) - - workload: project_promoted:{{agent_id}}:unstable:* - actions: - built_in:promote_habitat_packages - built_in:publish_rubygems \ No newline at end of file diff --git a/.expeditor/habitat-test.pipeline.yml b/.expeditor/habitat-test.pipeline.yml index f25faf316..12a3d1922 100644 --- a/.expeditor/habitat-test.pipeline.yml +++ b/.expeditor/habitat-test.pipeline.yml @@ -3,8 +3,6 @@ expeditor: defaults: buildkite: timeout_in_minutes: 30 - env: - HAB_REFRESH_CHANNEL: "LTS-2024" retry: automatic: limit: 1 diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index d2d415129..286d2dc2d 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -1,6 +1,8 @@ $ErrorActionPreference = "Stop" $PSDefaultParameterValues['*:ErrorAction']='Stop' +$env:HAB_BLDR_CHANNEL = "LTS-2024" +$env:HAB_REFRESH_CHANNEL = "LTS-2024" $pkg_name="ohai" $pkg_origin="chef" $pkg_version=$(Get-Content "$PLAN_CONTEXT/../VERSION") diff --git a/habitat/plan.sh b/habitat/plan.sh index 0bb3f2fda..06c57d494 100644 --- a/habitat/plan.sh +++ b/habitat/plan.sh @@ -1,3 +1,5 @@ +export HAB_BLDR_CHANNEL="LTS-2024" +export HAB_REFRESH_CHANNEL="LTS-2024" ruby_pkg="core/ruby3_1" pkg_name="ohai" pkg_origin="chef"