Skip to content

Commit

Permalink
Merge pull request #999 from chef/nikhil/update-config-promote-package
Browse files Browse the repository at this point in the history
Updating configuration for a symantec version promote and publish
  • Loading branch information
nikhil2611 authored Feb 4, 2025
2 parents 6055f28 + ecae5fd commit 1b84d45
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 11 deletions.
3 changes: 0 additions & 3 deletions .expeditor/build.habitat.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
---
env:
HAB_REFRESH_CHANNEL: "LTS-2024"

origin: chef

expeditor:
Expand Down
3 changes: 2 additions & 1 deletion .expeditor/buildkite/artifact.habitat.test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
# TODO: Set-StrictMode -Version Latest
$PSDefaultParameterValues['*:ErrorAction']='Stop'
$ErrorActionPreference = 'Stop'
# $env:HAB_REFRESH_CHANNEL = "LTS-2024"
$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'
Expand Down
3 changes: 2 additions & 1 deletion .expeditor/buildkite/artifact.habitat.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export HAB_ORIGIN='ci'
export PLAN='cookstyle'
export CHEF_LICENSE="accept-no-persist"
export HAB_LICENSE="accept-no-persist"
# export HAB_REFRESH_CHANNEL="LTS-2024"
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
Expand Down
5 changes: 1 addition & 4 deletions .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,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
2 changes: 0 additions & 2 deletions .expeditor/habitat-test.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ expeditor:
defaults:
buildkite:
timeout_in_minutes: 30
env:
HAB_REFRESH_CHANNEL: "LTS-2024"
retry:
automatic:
limit: 1
Expand Down
2 changes: 2 additions & 0 deletions habitat/plan.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$ErrorActionPreference = "Stop"
$PSDefaultParameterValues['*:ErrorAction']='Stop'

$env:HAB_BLDR_CHANNEL = "LTS-2024"
$env:HAB_REFRESH_CHANNEL = "LTS-2024"
$pkg_name="cookstyle"
$pkg_origin="chef"
$pkg_version=$(Get-Content "$PLAN_CONTEXT/../VERSION")
Expand Down
2 changes: 2 additions & 0 deletions habitat/plan.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export HAB_BLDR_CHANNEL="LTS-2024"
export HAB_REFRESH_CHANNEL="LTS-2024"
ruby_pkg="core/ruby3_1"
pkg_name="cookstyle"
pkg_origin="chef"
Expand Down

0 comments on commit 1b84d45

Please sign in to comment.