diff options
Diffstat (limited to 'jjb/vnfsdk/upload-artifact.sh')
-rw-r--r-- | jjb/vnfsdk/upload-artifact.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/jjb/vnfsdk/upload-artifact.sh b/jjb/vnfsdk/upload-artifact.sh new file mode 100644 index 000000000..a307ad66b --- /dev/null +++ b/jjb/vnfsdk/upload-artifact.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e -o pipefail +if [ -z "$PROJECT_ID" ] +then + echo "ERROR: NO PROJECT ID ENTERED" + exit 1 +else + cd $WORKSPACE/csarvalidation/target/generated-docs/Honolulu + for file in *.csv ; do + echo "-n --upload-file $file https://nexus.onap.org/content/sites/raw/$PROJECT_ID/Honolulu/$file" + curl -n --upload-file "$file" "https://nexus.onap.org/content/sites/raw/$PROJECT_ID/Honolulu/$file" + done + exit 0 +fi |