]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
cd to $WORKSPACE 81/head
authorAlfredo Deza <adeza@redhat.com>
Mon, 8 Jun 2015 14:11:44 +0000 (10:11 -0400)
committerAlfredo Deza <adeza@redhat.com>
Mon, 8 Jun 2015 14:11:44 +0000 (10:11 -0400)
Otherwise we will fail to be in the right directory to copy the
artifacts

Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-build/build/build_rpm

index 670bcc399e788c9cb7b8d25c259a8497b0fd9bfb..3df32344878cafffee4262b518a4d677e307cf2d 100644 (file)
@@ -108,6 +108,9 @@ rpmbuild -ba --define "_topdir ${BUILDAREA}" ceph.spec
 
 echo done
 
+# Make sure we execute at the top level directory
+cd "$WORKSPACE"
+
 #Collect Artifacts
 mkdir -p dist/rpm/${DIST}
 mv release/${vers}/rpm/*/SRPMS ./dist/rpm/${DIST}/.