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 | ||||
8 | cd $WORKSPACE/csarvalidation/target/generated-docs/Honolulu | ||||
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 |