build.sh: move files instead of copying them. 91/13591/1
authorJosep Puigdemont <josep.puigdemont@enea.com>
Wed, 27 Apr 2016 15:41:05 +0000 (17:41 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 2 May 2016 14:50:51 +0000 (14:50 +0000)
Change-Id: Ib59d82067d028a2c946a87747a6975749c85133b
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
(cherry picked from commit 3b174977cbb4bf7a3a734912748204ca923bcc19)

ci/build.sh

index 38be254..fbaa726 100755 (executable)
@@ -37,10 +37,10 @@ make REVSTATE="${OPNFV_ARTIFACT_VERSION}" release ||
 
 write_gitinfo >> ${BUILD_BASE}/gitinfo_armband.txt
 
-echo "Copying results to $OUTPUT_DIR"
+echo "Moving results to $OUTPUT_DIR"
 sort ${BUILD_BASE}/gitinfo*.txt > ${OUTPUT_DIR}/gitinfo.txt
-cp ${RESULT_DIR}/*.iso ${OUTPUT_DIR}/
-cp ${RESULT_DIR}/*.iso.txt ${OUTPUT_DIR}/
+mv ${RESULT_DIR}/*.iso ${OUTPUT_DIR}/
+mv ${RESULT_DIR}/*.iso.txt ${OUTPUT_DIR}/
 
 # We need to build our own ODL plugin, and when this happens, fuel
 # renames the iso to unofficial-opnfv-${REVSTATE}.iso, so here we remove