mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 11:44:38 +00:00
ci: fix clone_tests_repo function
We should not checkout to 2.0-dev branch in the clone_tests_repo function when running in Jenkins CI as it discards changes from tests repo. Fixes: #818. Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
This commit is contained in:
parent
46f420a9dc
commit
1984e635de
@ -5,13 +5,11 @@
|
|||||||
|
|
||||||
export tests_repo="${tests_repo:-github.com/kata-containers/tests}"
|
export tests_repo="${tests_repo:-github.com/kata-containers/tests}"
|
||||||
export tests_repo_dir="$GOPATH/src/$tests_repo"
|
export tests_repo_dir="$GOPATH/src/$tests_repo"
|
||||||
export branch="2.0-dev"
|
export branch="${branch:-2.0-dev}"
|
||||||
|
|
||||||
clone_tests_repo()
|
clone_tests_repo()
|
||||||
{
|
{
|
||||||
# KATA_CI_NO_NETWORK is (has to be) ignored if there is
|
if [ -d "$tests_repo_dir" -a -n "$CI" ]
|
||||||
# no existing clone.
|
|
||||||
if [ -d "$tests_repo_dir" -a -n "$KATA_CI_NO_NETWORK" ]
|
|
||||||
then
|
then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user