Add job to upload files for documentation to nexus.
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Change-Id: Ia67a7b0572e7e7e0ac1aa4514e1370db7135588b
Issue-ID: VNFSDK-696
diff --git a/jjb/vnfsdk/upload-artifact.sh b/jjb/vnfsdk/upload-artifact.sh
new file mode 100644
index 0000000..a307ad6
--- /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