summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2015-04-17 15:18:07 -0400
committerAric Gardner <agardner@linuxfoundation.org>2015-04-17 15:40:32 -0400
commit42e7f7bc6cf41d68b1ae7247d10314f5f67d638c (patch)
tree3100723ff0e61d659ae23cf37bf69dfc5b633daf /jjb
parentb272a045032271bc085622478be62df4c021f107 (diff)
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 <agardner@linuxfoundation.org>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/genesis/build-docu.sh3
-rw-r--r--jjb/opnfvdocs/build-docu.sh5
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