diff options
-rw-r--r-- | jjb/genesis/build-docu.sh | 3 | ||||
-rw-r--r-- | jjb/opnfvdocs/build-docu.sh | 5 |
2 files changed, 5 insertions, 3 deletions
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 |