Update push url in vnfsdk upload docs job.
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Change-Id: Ib1cfdb35a45015f0b391496cc2bd29ce966aa7d3
Issue-ID: VNFSDK-696
diff --git a/jjb/vnfsdk/upload-artifact.sh b/jjb/vnfsdk/upload-artifact.sh
index 3e07fd5..f384f47 100644
--- a/jjb/vnfsdk/upload-artifact.sh
+++ b/jjb/vnfsdk/upload-artifact.sh
@@ -6,9 +6,9 @@
exit 1
else
cd $WORKSPACE/generated/active-validation-rules/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"
+ for FILE_NAME in *.csv ; do
+ echo "-n --upload-file $FILE_NAME https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$FILE_NAME"
+ curl -n --upload-file "$FILE_NAME" "https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$FILE_NAME"
done
exit 0
fi
diff --git a/jjb/vnfsdk/vnfsdk-validation.yaml b/jjb/vnfsdk/vnfsdk-validation.yaml
index b95c3a7..55a0117 100644
--- a/jjb/vnfsdk/vnfsdk-validation.yaml
+++ b/jjb/vnfsdk/vnfsdk-validation.yaml
@@ -76,5 +76,5 @@
jobs:
- '{project-name}-{stream}-build-and-upload':
pre_script: !include-raw-escape: ./generate-dosc.sh
- project_id: org.onap.vnfsdk.refrepo
+ project_id: org.onap.vnfsdk.validation
post_script: !include-raw-escape: ./upload-artifact.sh