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 | 8e505aa | 2020-11-25 14:06:01 +0100 | [diff] [blame] | 9 | for file in *.csv ; do |
| 10 | echo "-n --upload-file $file https://nexus.onap.org/content/sites/raw/$PROJECT_ID/Honolulu/$file" |
| 11 | curl -n --upload-file "$file" "https://nexus.onap.org/content/sites/raw/$PROJECT_ID/Honolulu/$file" |
| 12 | done |
| 13 | exit 0 |
| 14 | fi |