summaryrefslogtreecommitdiffstats
path: root/jjb/vnfrqts
diff options
context:
space:
mode:
authorHagop Bozawglanian <hagop.bozawglanian@att.com>2019-02-28 19:09:30 +0000
committerHagop Bozawglanian <hagop.bozawglanian@att.com>2019-02-28 19:15:20 +0000
commit03129589d4d4f67e74f44e54b97171b2539f1835 (patch)
treeae2430057757d2c805ab3f2e8e6507b30f306869 /jjb/vnfrqts
parenta5e416620da9b4b766d3f0fca3ee9932dc28c725 (diff)
VNFRQTS - Update job to upload artifacts
Update the post script to curl raw artifacts based on the number passed in to work for VNFRQTS and VVP. Change-Id: Iefd4e0e5069c2917952072dbf5e26433495fd25f Issue-ID: VNFRQTS-539 Signed-off-by: Hagop Bozawglanian <hagop.bozawglanian@att.com>
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