summaryrefslogtreecommitdiffstats
path: root/jjb/vvp
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/vvp
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/vvp')
-rw-r--r--jjb/vvp/build-csv.sh8
-rw-r--r--jjb/vvp/pre-build-csv.sh11
-rw-r--r--jjb/vvp/vvp-validation-scripts.yaml6
3 files changed, 15 insertions, 10 deletions
diff --git a/jjb/vvp/build-csv.sh b/jjb/vvp/build-csv.sh
deleted file mode 100644
index 7c379128b..000000000
--- a/jjb/vvp/build-csv.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/bash
-virtualenv -p python3 $WORKSPACE/venv-tox
-source $WORKSPACE/venv-tox/bin/activate
-pip3 install --upgrade pip
-pip3 install --no-use-pep517 -r requirements.txt
-ls
-cd ice_validator/
-pytest --self-test tests/
diff --git a/jjb/vvp/pre-build-csv.sh b/jjb/vvp/pre-build-csv.sh
new file mode 100644
index 000000000..b90f77b86
--- /dev/null
+++ b/jjb/vvp/pre-build-csv.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+virtualenv -p python3 $WORKSPACE/venv-tox
+source $WORKSPACE/venv-tox/bin/activate
+pip3 install --upgrade pip
+pip3 install --no-use-pep517 -r requirements.txt
+ls
+wget -O $WORKSPACE/ice_validator/heat_requirements.json "https://nexus.onap.org/content/sites/raw/org.onap.vnfrqts.requirements/master/needs.json"
+echo "Copied newest needs."
+cd ice_validator/
+pytest --self-test tests/ \ No newline at end of file
diff --git a/jjb/vvp/vvp-validation-scripts.yaml b/jjb/vvp/vvp-validation-scripts.yaml
index 9baec8582..cea59c11c 100644
--- a/jjb/vvp/vvp-validation-scripts.yaml
+++ b/jjb/vvp/vvp-validation-scripts.yaml
@@ -44,5 +44,7 @@
branch: 'master'
jobs:
- '{project-name}-{stream}-build-and-upload':
- script:
- !include-raw-escape: 'build-csv.sh'
+ pre_script: !include-raw-escape: pre-build-csv.sh
+ artifact_name: tracability.csv rst.csv
+ project_id: org.onap.vvp.validation.scripts
+ post_script: !include-raw-escape: ../vnfrqts/post-upload-artifact.sh