build.sh: move files instead of copying them. 33/12733/1
authorJosep Puigdemont <josep.puigdemont@enea.com>
Wed, 27 Apr 2016 15:41:05 +0000 (17:41 +0200)
committerJosep Puigdemont <josep.puigdemont@enea.com>
Wed, 27 Apr 2016 15:42:27 +0000 (17:42 +0200)
Change-Id: Ib59d82067d028a2c946a87747a6975749c85133b
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
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