summaryrefslogtreecommitdiffstats
path: root/jjb/vnfsdk/upload-artifact.sh
blob: f384f47256ec35c648c5750a487ff55ff0734d6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -e -o pipefail
if [ -z "$PROJECT_ID" ]
then
    echo "ERROR: NO PROJECT ID ENTERED"
    exit 1
else
    cd $WORKSPACE/generated/active-validation-rules/Honolulu/
    for FILE_NAME in *.csv ; do
        echo "-n --upload-file $FILE_NAME https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$FILE_NAME"
        curl -n --upload-file "$FILE_NAME" "https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$FILE_NAME"
    done
    exit 0
fi