mirror of
https://github.com/SonarSource/sonarqube.git
synced 2024-08-08 14:11:17 +02:00
16 lines
289 B
Bash
16 lines
289 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
DUMP_DIR="/tmp/batch_dumps"
|
||
|
SQ_ROOT_URL="http://localhost:9000"
|
||
|
|
||
|
cd $DUMP_DIR
|
||
|
for file in *.zip; do
|
||
|
base=${file%.zip}
|
||
|
url=$(cat ${base}.txt)
|
||
|
echo "base=$base, url=$url"
|
||
|
|
||
|
curl -u admin:admin -F report=@$DUMP_DIR/${base}.zip ${SQ_ROOT_URL}${url}
|
||
|
done
|