mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
CI: add pip install in upgrade job
This will avoid check ansible version failed in upgrade job. Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
@@ -18,6 +18,7 @@ if [ "${UPGRADE_TEST}" != "false" ]; then
|
|||||||
# Checkout the current tests/ directory ; even when testing old version,
|
# Checkout the current tests/ directory ; even when testing old version,
|
||||||
# we want the up-to-date test setup/provisionning
|
# we want the up-to-date test setup/provisionning
|
||||||
git checkout "${CI_COMMIT_SHA}" -- tests/
|
git checkout "${CI_COMMIT_SHA}" -- tests/
|
||||||
|
pip install --no-compile --no-cache-dir -r requirements.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export ANSIBLE_BECOME=true
|
export ANSIBLE_BECOME=true
|
||||||
@@ -80,6 +81,8 @@ run_playbook cluster.yml
|
|||||||
if [ "${UPGRADE_TEST}" != "false" ]; then
|
if [ "${UPGRADE_TEST}" != "false" ]; then
|
||||||
git checkout "${CI_COMMIT_SHA}"
|
git checkout "${CI_COMMIT_SHA}"
|
||||||
|
|
||||||
|
pip install --no-compile --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
case "${UPGRADE_TEST}" in
|
case "${UPGRADE_TEST}" in
|
||||||
"basic")
|
"basic")
|
||||||
run_playbook cluster.yml
|
run_playbook cluster.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user