Skip to content

Commit

Permalink
Removing unnecessary steps.
Browse files Browse the repository at this point in the history
Signed-off-by: Kallol Roy <kallol.roy@progress.com>
  • Loading branch information
kalroy authored and sreepuramsudheer committed Sep 27, 2024
1 parent 89174cb commit 4ef811e
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 356 deletions.
22 changes: 9 additions & 13 deletions .expeditor/automate_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export ORIGIN=chef
export HAB_ORIGIN=chef
export HAB_LICENSE=accept-no-persist
export OCTOKIT_ACCESS_TOKEN
export HAB_LICENSE=accept
export CHEF_LICENSE="accept-no-persist"
export CI=true
export HAB_ORIGIN_KEYS=chef
Expand Down Expand Up @@ -36,26 +35,23 @@ echo "generating package for nginx"
openresty_hart=$(ls -1t results/chef-openresty*.hart | head -1)
HAB_FEAT_OFFLINE_INSTALL=true HAB_FEAT_IGNORE_LOCAL=false HAB_ORIGIN=chef HAB_CACHE_KEY_PATH="$JOB_TEMP_ROOT/keys" DO_CHECK=true HAB_BLDR_CHANNEL=dev hab studio run -D "set -e; hab pkg install $openresty_hart; hab pkg build src/nginx"

cp $HAB_CACHE_KEY_PATH/* results
# tar -cvf results.tar results
# gzip results.tar
# buildkite-agent artifact upload results.tar.gz

git clone https://github.com/chef/automate.git
cd automate
git checkout vikas/cs-changes-for-pipeline

RESOLVED_RESULTS_DIR=$(realpath results/)
export DO_CHECK=true

cp ../results/*.hart ../results/chef*.pub ../results/chef*.key results
cp $HAB_CACHE_KEY_PATH/* results

#cp ../results/*.hart ../results/chef*.pub ../results/chef*.key results
../.expeditor/replace.sh
bookshelf_hart=$(ls -1t results/chef-bookshelf*.hart | head -1)
chef_server_ctl_hart=$(ls -1t results/chef-chef-server-ctl*.hart | head -1)
nginx=$(ls -1t results/chef-chef-server-nginx*.hart | head -1)
oc_id=$(ls -1t results/chef-oc_id*.hart | head -1)
bifrost_hart=$(ls -1t results/chef-oc_bifrost*.hart | head -1)
erchef_hart=$(ls -1t results/chef-oc_erchef*.hart | head -1)
bookshelf_hart=$(ls -1t ../results/chef-bookshelf*.hart | head -1)
chef_server_ctl_hart=$(ls -1t ../results/chef-chef-server-ctl*.hart | head -1)
nginx=$(ls -1t ../results/chef-chef-server-nginx*.hart | head -1)
oc_id=$(ls -1t ../results/chef-oc_id*.hart | head -1)
bifrost_hart=$(ls -1t ../results/chef-oc_bifrost*.hart | head -1)
erchef_hart=$(ls -1t ../results/chef-oc_erchef*.hart | head -1)


HAB_FEAT_OFFLINE_INSTALL=true HAB_FEAT_IGNORE_LOCAL=false HAB_ORIGIN=chef HAB_CACHE_KEY_PATH="$JOB_TEMP_ROOT/keys" DO_CHECK=true HAB_BLDR_CHANNEL=dev hab studio run -D "set -e; hab pkg install $bookshelf_hart; hab pkg build components/automate-cs-bookshelf"
Expand Down
Loading

0 comments on commit 4ef811e

Please sign in to comment.