Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing New Pipeline #3909

Open
wants to merge 47 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
776893c
test A for new Pipeline
talktovikas Sep 16, 2024
296a9db
changing raw contents, for test.
talktovikas Sep 16, 2024
bcc9a99
adding steps
talktovikas Sep 16, 2024
969f82b
revert and test new series of commands.
talktovikas Sep 16, 2024
fb33a62
test B
talktovikas Sep 16, 2024
3192c96
Test c
talktovikas Sep 16, 2024
8457c37
Test D
talktovikas Sep 16, 2024
a58ba7e
Test E
talktovikas Sep 16, 2024
b1f0e62
test F
talktovikas Sep 16, 2024
1c4f623
test G
talktovikas Sep 16, 2024
35dda71
test H
talktovikas Sep 16, 2024
215cfb2
test I
talktovikas Sep 16, 2024
60bab61
test J
talktovikas Sep 16, 2024
77dba5d
test k
talktovikas Sep 16, 2024
d58092f
test L
talktovikas Sep 16, 2024
9f4c9a2
test M
talktovikas Sep 16, 2024
6a491ba
test N
talktovikas Sep 16, 2024
a6016f3
test O
talktovikas Sep 16, 2024
6ae9b37
test X
talktovikas Sep 16, 2024
0f7a1fa
test wolverineX
talktovikas Sep 16, 2024
7eced5e
test wolverine2X
talktovikas Sep 16, 2024
175e5f6
test wolverine2XX
talktovikas Sep 16, 2024
76aceb1
test wolverine2XXX
talktovikas Sep 16, 2024
d9406e9
test wolverine2Y
talktovikas Sep 16, 2024
e9e52e5
test wolverine2YY
talktovikas Sep 16, 2024
4f6fe0a
test wolverine2A
talktovikas Sep 16, 2024
bd77c9e
testA
talktovikas Sep 16, 2024
80f186e
testB
talktovikas Sep 17, 2024
078d060
test C
talktovikas Sep 17, 2024
9dfb29d
test D, Removing other cases
talktovikas Sep 17, 2024
986f2fd
test E
talktovikas Sep 17, 2024
3b81f54
test D1, Removing other cases
talktovikas Sep 17, 2024
f89a3a4
test N
talktovikas Sep 17, 2024
d301d0c
test P
talktovikas Sep 17, 2024
fe4719e
test PA
talktovikas Sep 17, 2024
de89fff
test PAA
talktovikas Sep 17, 2024
ffdd560
test PB
talktovikas Sep 17, 2024
ec44c0d
test PC
talktovikas Sep 17, 2024
8df5153
test PCC
talktovikas Sep 17, 2024
cf3d58d
test PD
talktovikas Sep 17, 2024
93df025
test PE
talktovikas Sep 17, 2024
ddd76a8
test PF
talktovikas Sep 17, 2024
9925823
test PG
talktovikas Sep 17, 2024
4187cca
test BUILDKITE
talktovikas Sep 17, 2024
a20eb98
test BUILDKITEA
talktovikas Sep 17, 2024
cd89fb4
test BUILDKITEAA
talktovikas Sep 17, 2024
ad67e7f
test BUILDKITEM
talktovikas Sep 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ pipelines:
- verify
- verify:
public: true
- habitat/build
- habitat
- habitat:
public: true
- habitat/test:
definition: .expeditor/habitat-test.pipeline.yml
trigger: default
Expand Down
17 changes: 17 additions & 0 deletions .expeditor/habitat.habitat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
expeditor:
cached_folders:
- vendor
defaults:
buildkite:
timeout_in_minutes: 30

steps:

- label: habitat-packages
command:
- .expeditor/habitat.sh
expeditor:
executor:
docker:
environment:
- OCTOKIT_ACCESS_TOKEN
17 changes: 17 additions & 0 deletions .expeditor/habitat.pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
expeditor:
cached_folders:
- vendor
defaults:
buildkite:
timeout_in_minutes: 30

steps:

- label: habitat-packages
command:
- .expeditor/habitat.sh
expeditor:
executor:
docker:
environment:
- OCTOKIT_ACCESS_TOKEN
53 changes: 53 additions & 0 deletions .expeditor/habitat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/bash -e

# this script builds all the essential habitat packages for running Chef Server
# additionaly, it exports them as a local docker image
export CHEF_SERVER_SRC='/workdir/src'
export ORIGIN=chef
export HAB_LICENSE=accept-no-persist

curl https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.sh | sudo bash

export JOB_TEMP_ROOT
JOB_TEMP_ROOT=$(mktemp -d /tmp/job-root-XXXXXX)
export HAB_CACHE_KEY_PATH
HAB_CACHE_KEY_PATH="$JOB_TEMP_ROOT/keys"

echo "--- :key: Generating fake origin key"
hab license accept
hab origin key generate
echo "The directory:" `pwd`
echo "ls -l:" `ls -l`
echo "whoami:" `whoami`
# cd /workdir/src/bookshelf
hab pkg build src/bookshelf
pushd results
pkg_name=$(ls -1t *.hart | head -1)
popd
echo pkg_name is $pkg_name
buildkite-agent artifact upload results/$pkg_name
hab pkg upload results/$pkg_name
# hab pkg export docker -i "$ORIGIN/bookshelf" \
# --no-push-image \
# --no-tag-latest \
# --no-tag-version \
# --no-tag-version-release \
# --tag-custom "localdev" \
# $pkg_name


# for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do
# cd $CHEF_SERVER_SRC/$dir
# echo "hab version is :" `hab --version`
# echo "[STATUS] building $dir"
# build > /var/log/build-${dir}-$(date +%s).log
# if [[ $dir =~ dbdpg|openresty-noroot ]]; then continue; fi
# echo "[STATUS] exporting $dir pkg to docker daemon"
# hab pkg export docker -i "$ORIGIN/{{pkg_name}}" \
# --no-push-image \
# --no-tag-latest \
# --no-tag-version \
# --no-tag-version-release \
# --tag-custom "localdev" \
# $(ls -1t results/*.hart | head -1)
# done
Loading
Loading