From 42e7f7bc6cf41d68b1ae7247d10314f5f67d638c Mon Sep 17 00:00:00 2001 From: Aric Gardner Date: Fri, 17 Apr 2015 15:18:07 -0400 Subject: fix typo, also delete gsoutput.txt after it is echoed gsutil was silently dying refusing to overrite gsoutput.txt JIRA:0000 Change-Id: I8e633677908335e035f86f5aa9a60bb8f0600177 Signed-off-by: Aric Gardner --- jjb/genesis/build-docu.sh | 3 ++- jjb/opnfvdocs/build-docu.sh | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'jjb') diff --git a/jjb/genesis/build-docu.sh b/jjb/genesis/build-docu.sh index a98450dbe..b3869fcf7 100644 --- a/jjb/genesis/build-docu.sh +++ b/jjb/genesis/build-docu.sh @@ -21,6 +21,7 @@ for file in "${{files[@]}}"; do -h "Cache-Control:private, max-age=0, no-transform" \ gs://artifacts.opnfv.org/"$project"/"$gs_cp_folder"/$(basename "$html_file") cat gsoutput.txt + rm -f gsoutput.txt pdf_file="$file_cut"".pdf" @@ -31,7 +32,7 @@ for file in "${{files[@]}}"; do -h "Cache-Control:private, max-age=0, no-transform" \ gs://artifacts.opnfv.org/"$project"/"$gs_cp_folder"/$(basename "$pdf_file") cat gsoutput.txt + rm -f gsoutput.txt done -rm -f gsoutput.txt diff --git a/jjb/opnfvdocs/build-docu.sh b/jjb/opnfvdocs/build-docu.sh index 7dbeb6587..3076c37a7 100644 --- a/jjb/opnfvdocs/build-docu.sh +++ b/jjb/opnfvdocs/build-docu.sh @@ -27,15 +27,16 @@ for file in "${{files[@]}}"; do -h "Cache-Control:private, max-age=0, no-transform" \ gs://artifacts.opnfv.org/"$project"/"$gs_cp_folder".html cat gsoutput.txt + rm -f gsoutput.txt echo "rst2pdf $file" - rst2pdf $fle -o - | gsutil cp -L gsoutput.txt - \ + rst2pdf $file -o - | gsutil cp -L gsoutput.txt - \ gs://artifacts.opnfv.org/"$project"/"$gs_cp_folder".html gsutil setmeta -h "Content-Type:application/pdf" \ -h "Cache-Control:private, max-age=0, no-transform" \ gs://artifacts.opnfv.org/"$project"/"$gs_cp_folder".pdf cat gsoutput.txt + rm -f gsoutput.txt done -rm -f gsoutput.txt -- cgit 1.2.3-korg