From 804b25d9289e683684eb88e9b550b40d44da3c7a Mon Sep 17 00:00:00 2001 From: Thomas F Herbert Date: Sat, 19 Dec 2015 16:12:07 -0500 Subject: Use GS_URL as it is now defined by Jenkins and detect Jenkins job name Fix Typo Change-Id: Ib17628deac512ca37060d087509fda290a23d1ab Signed-off-by: Thomas F Herbert --- ci/buildovs.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'ci/buildovs.sh') diff --git a/ci/buildovs.sh b/ci/buildovs.sh index b731bd1..b967c16 100755 --- a/ci/buildovs.sh +++ b/ci/buildovs.sh @@ -13,8 +13,6 @@ if [ -z ${WORKSPACE+1} ]; then # We are not being run by Jenkins. export WORKSPACE=$HOME/opnfv/ovsnfv -else - export JENKINS=true fi @@ -33,9 +31,10 @@ export BUILD_BASE=$WORKSPACE/build if [ ! -d $BUILD_BASE ] then mkdir -p $BUILD_BASE - if [ ! -f $BUILD_BASE/config ]; then - touch $BUILd_BASE/config - fi +fi + +if [ ! -f $BUILD_BASE/config ]; then + touch $BUILD_BASE/config fi export PATH=$PATH:$WORKSPACE/ci:$BUILD_BASE @@ -56,7 +55,6 @@ echo "--------------------------------------------------" echo "Build OVS RPM from upstream git $TAG" echo -mkdir -p $RPMDIR/BUILD mkdir -p $RPMDIR/RPMS mkdir -p $RPMDIR/SOURCES mkdir -p $RPMDIR/SPECS @@ -167,7 +165,7 @@ fi # copy artifacts. -if [ ! -z ${JENKINS+1} ]; then +if [ "$JOB_NAME" == "daily" ]; then upload_artifacts.sh fi -- cgit 1.2.3-korg