summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/htmlize/push-doc-artifact.sh
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-01-17 13:22:57 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-17 13:22:57 +0000
commita5923540034403860464e6f01f32c159c31a254d (patch)
tree17de69bba3c2199368c75745b3bfff7f52f43f06 /utils/test/testapi/htmlize/push-doc-artifact.sh
parent7408371048bdb55a119e384925477a7bc527ab01 (diff)
parentf3a3db7c03c10567164810841a585165018bc014 (diff)
Merge "Fix a bug - add requests in virtualenv"
Diffstat (limited to 'utils/test/testapi/htmlize/push-doc-artifact.sh')
-rw-r--r--utils/test/testapi/htmlize/push-doc-artifact.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/test/testapi/htmlize/push-doc-artifact.sh b/utils/test/testapi/htmlize/push-doc-artifact.sh
index 383565df1..4cf1988b0 100644
--- a/utils/test/testapi/htmlize/push-doc-artifact.sh
+++ b/utils/test/testapi/htmlize/push-doc-artifact.sh
@@ -7,19 +7,21 @@ export PATH=$PATH:/usr/local/bin/
project=$PROJECT
workspace=$WORKSPACE
-artifact_dir="functest/docs"
+artifact_dir="$project/docs"
set +e
gsutil&>/dev/null
if [ $? != 0 ]; then
echo "Not possible to push results to artifact: gsutil not installed"
+ exit 1
else
gsutil ls gs://artifacts.opnfv.org/"$project"/ &>/dev/null
if [ $? != 0 ]; then
echo "Not possible to push results to artifact: gsutil not installed."
+ exit 1
else
echo "Uploading document to artifact $artifact_dir"
gsutil cp "$workspace"/index.html gs://artifacts.opnfv.org/"$artifact_dir"/testapi.html >/dev/null 2>&1
- echo "Document can be found at http://artifacts.opnfv.org/functest/docs/testapi.html"
+ echo "Document can be found at http://artifacts.opnfv.org/releng/docs/testapi.html"
fi
fi