summaryrefslogtreecommitdiffstats
path: root/jjb/vnfrqts
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/vnfrqts')
-rw-r--r--jjb/vnfrqts/post-upload-artifact.sh21
1 files changed, 18 insertions, 3 deletions
diff --git a/jjb/vnfrqts/post-upload-artifact.sh b/jjb/vnfrqts/post-upload-artifact.sh
index 2de1f4d8c..588e49b04 100644
--- a/jjb/vnfrqts/post-upload-artifact.sh
+++ b/jjb/vnfrqts/post-upload-artifact.sh
@@ -1,6 +1,21 @@
#!/bin/bash
set -e -o pipefail
-cd $WORKSPACE/docs/data
-echo "-n --upload-file $ARTIFACT_NAME https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$ARTIFACT_NAME"
-curl -n --upload-file "$ARTIFACT_NAME" "https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$ARTIFACT_NAME" \ No newline at end of file
+set -- $ARTIFACT_NAME
+if [ -z "$ARTIFACT_NAME" ]
+then
+ echo "ERROR NO ARTIFACTS ENTERED"
+else
+ if [ -z "$2" ]
+ then
+ cd $WORKSPACE/docs/data
+ echo "-n --upload-file $ARTIFACT_NAME https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$ARTIFACT_NAME"
+ curl -n --upload-file "$ARTIFACT_NAME" "https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$ARTIFACT_NAME"
+ else
+ cd $WORKSPACE/ice_validator/output
+ echo "-n --upload-file $1 https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$1"
+ curl -n --upload-file "$1" "https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$1"
+ echo "-n --upload-file $2 https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$2"
+ curl -n --upload-file "$2" "https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$2"
+ fi
+fi \ No newline at end of file