From c20c8286d72ca64751162b1932e0e3f680f0e32f Mon Sep 17 00:00:00 2001 From: Sakala Venkata Krishna Rohit Date: Mon, 26 Mar 2018 23:07:47 +0530 Subject: BugFix for testapi automate job push doc file name was not matching. Change-Id: I151db14dca564b7c2c0e830cf359157e223dddeb --- ci/htmlize/push-doc-artifact.sh | 27 --------------------------- ci/htmlize/push-doc-artifacts.sh | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 ci/htmlize/push-doc-artifact.sh create mode 100644 ci/htmlize/push-doc-artifacts.sh (limited to 'ci') diff --git a/ci/htmlize/push-doc-artifact.sh b/ci/htmlize/push-doc-artifact.sh deleted file mode 100644 index e6432d3..0000000 --- a/ci/htmlize/push-doc-artifact.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -set -e -set -o pipefail - -export PATH=$PATH:/usr/local/bin/ - -project=$PROJECT -workspace=$WORKSPACE -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/releng-testresults/docs/testapi.html" - fi -fi diff --git a/ci/htmlize/push-doc-artifacts.sh b/ci/htmlize/push-doc-artifacts.sh new file mode 100644 index 0000000..e6432d3 --- /dev/null +++ b/ci/htmlize/push-doc-artifacts.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +set -e +set -o pipefail + +export PATH=$PATH:/usr/local/bin/ + +project=$PROJECT +workspace=$WORKSPACE +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/releng-testresults/docs/testapi.html" + fi +fi -- cgit 1.2.3-korg