Bartosz Gardziejewski | 8e505aa | 2020-11-25 14:06:01 +0100 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | set -e -o pipefail |
| 3 | if [ -z "$PROJECT_ID" ] |
| 4 | then |
| 5 | echo "ERROR: NO PROJECT ID ENTERED" |
| 6 | exit 1 |
| 7 | else |
Bartosz Gardziejewski | 768660d | 2020-12-17 09:21:45 +0100 | [diff] [blame] | 8 | cd $WORKSPACE/generated/active-validation-rules/Honolulu/ |
Bartosz Gardziejewski | 81174dd | 2020-12-30 07:33:27 +0100 | [diff] [blame^] | 9 | for FILE_NAME in *.csv ; do |
| 10 | echo "-n --upload-file $FILE_NAME https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$FILE_NAME" |
| 11 | curl -n --upload-file "$FILE_NAME" "https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$FILE_NAME" |
Bartosz Gardziejewski | 8e505aa | 2020-11-25 14:06:01 +0100 | [diff] [blame] | 12 | done |
| 13 | exit 0 |
| 14 | fi |