From e6ccc6e5888c6026646b5d3cb21bb3a4272b0d27 Mon Sep 17 00:00:00 2001 From: Zhijiang Date: Fri, 21 Oct 2016 01:21:30 -0400 Subject: Automatically remove the container when it exits Change-Id: I7ce146ef4dc8717e782600750660dddf45e3047f Signed-off-by: Zhijiang --- ci/build_rpm/daisy_rpm_build.sh | 48 ----------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 ci/build_rpm/daisy_rpm_build.sh (limited to 'ci/build_rpm/daisy_rpm_build.sh') diff --git a/ci/build_rpm/daisy_rpm_build.sh b/ci/build_rpm/daisy_rpm_build.sh deleted file mode 100644 index a9c24044..00000000 --- a/ci/build_rpm/daisy_rpm_build.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -############################################################################## -# Copyright (c) 2016 ZTE Coreporation and others. -# hu.zhijiang@zte.com.cn -# sun.jing22@zte.com.cn -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## -output_dir = "$1" - -echo "#########################################################" -echo " systemctl info: " -echo "#########################################################" -echo "###Uname:" -uname -echo "###Hostname:" -hostname - - -maxcount=3 -cnt=0 -rc=1 -while [ $cnt -lt $maxcount ] && [ $rc -ne 0 ] -do - cnt=$[cnt + 1] - echo -e "\n\n\n*** Starting build attempt # $cnt" - - mkdir daisy-dir - cd daisy-dir - git clone https://git.openstack.org/openstack/daisycloud-core - cd daisycloud-core/tools - make allrpm - - echo "######################################################" - echo " done " - echo "######################################################" - rc=$? - if [ $rc -ne 0 ]; then - echo "### Build failed with rc $rc ###" - else - echo "### Build successful at attempt # $cnt" - fi -done -cd daisy-dir -mv daisycloud-core/target/el7/noarch/installdaisy_el7_noarch.bin output_dir -exit $rc -- cgit 1.2.3-korg