diff options
Diffstat (limited to 'ci/build_rpm')
-rwxr-xr-x | ci/build_rpm/build_rpms.sh | 4 | ||||
-rwxr-xr-x | ci/build_rpm/build_rpms_docker.sh | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/ci/build_rpm/build_rpms.sh b/ci/build_rpm/build_rpms.sh index db5a42e9..e4b0cae9 100755 --- a/ci/build_rpm/build_rpms.sh +++ b/ci/build_rpm/build_rpms.sh @@ -36,9 +36,9 @@ function cleanup_container { ${containers_to_kill} | egrep -v '(^\s*$)' | sort | uniq) echo "Stopping containers... $containers_to_kill" - (sudo docker stop -t 2 ${containers_to_kill} 2>&1) > /dev/null + sudo docker stop -t 2 ${containers_to_kill} echo "Removing containers... $containers_to_kill" - (sudo docker rm -v -f ${containers_to_kill} 2>&1) > /dev/null + sudo docker rm -v -f ${containers_to_kill} if [[ ! -z "$volumes_to_remove" ]]; then echo "Removing volumes... $volumes_to_remove" diff --git a/ci/build_rpm/build_rpms_docker.sh b/ci/build_rpm/build_rpms_docker.sh index caeb005b..b005a243 100755 --- a/ci/build_rpm/build_rpms_docker.sh +++ b/ci/build_rpm/build_rpms_docker.sh @@ -14,6 +14,7 @@ rpm_build_dir=/opt/daisy4nfv rpm_output_dir=$rpm_build_dir/build_output tmp_rpm_build_dir=/home/cache/daisy4nfv +DAISYCORE_REPO="https://git.openstack.org/openstack/daisycloud-core" DAISYCORE_TAG= if [[ -d $tmp_rpm_build_dir ]]; then @@ -36,12 +37,10 @@ do cnt=$[cnt + 1] echo -e "\n\n\n*** Starting build attempt # $cnt" - git clone https://git.openstack.org/openstack/daisycloud-core - if [[ ! -z "$DAISYCORE_TAG" ]]; then - pushd daisycloud-core - git checkout $DAISYCORE_TAG - popd + git clone $DAISYCORE_REPO --branch $DAISYCORE_TAG --depth 1 + else + git clone $DAISYCORE_REPO --depth 1 fi cp $rpm_build_dir/code/makefile_patch.sh daisycloud-core/tools/setup |