VNFRQTS - Fix curl statement 25/79225/1
authorHagop Bozawglanian <hagop.bozawglanian@att.com>
Tue, 26 Feb 2019 21:42:22 +0000 (21:42 +0000)
committerHagop Bozawglanian <hagop.bozawglanian@att.com>
Tue, 26 Feb 2019 21:42:22 +0000 (21:42 +0000)
Update the curl statement and changes to support the statement.

Change-Id: I5a06b93b1e4a3b9ac9c64055eac2a45d71d71384
Issue-ID: VNFRQTS-538
Signed-off-by: Hagop Bozawglanian <hagop.bozawglanian@att.com>
jjb/vnfrqts/build-and-upload.yaml
jjb/vnfrqts/post-upload-artifact.sh
jjb/vnfrqts/vnfrqts-requirements.yaml

index 1e7b8cf..d3fd4a6 100644 (file)
@@ -9,6 +9,7 @@
     pre_script: ''
     post_script: ''
     artifact_name: ''
+    project_id: ''
 
     project-type: freestyle
     concurrent: true
@@ -56,6 +57,7 @@
       - inject:
           properties-content: |
             ARTIFACT_NAME={artifact_name}
+            PROJECT_ID={project_id}
       - shell: '{obj:post_script}'
       - lf-provide-maven-settings-cleanup
 
index 7719312..2de1f4d 100644 (file)
@@ -1,5 +1,6 @@
 #!/bin/bash
 
 set -e -o pipefail
-echo "-n --upload-file $ARTIFACT_NAME https://nexus.onap.org/content/sites/raw/$JOB_BASE_NAME/$GERRIT_BRANCH/$ARTIFACT_NAME"
-curl -n --upload-file "$ARTIFACT_NAME" "https://nexus.onap.org/content/sites/raw/$JOB_BASE_NAME/$GERRIT_BRANCH/$ARTIFACT_NAME"
\ No newline at end of file
+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
index 1b3f166..7bb260e 100644 (file)
@@ -20,5 +20,6 @@
     jobs:
       - '{project-name}-{stream}-build-and-upload':
           pre_script: !include-raw-escape: pre-build-needs.sh
-          artifact_name: docs/data/needs.json
+          artifact_name: needs.json
+          project_id: org.onap.vnfrqts.requirements
           post_script: !include-raw-escape: post-upload-artifact.sh