sonarqube/scripts/replay_batch.sh
Sébastien Lesaint 5f9538c9a9 add ability to dump batch report enabled by sonar.batch.dumpReportDir
batch report dump are saved in the directory specified by the property sonar.batch.dumpReportDir and the batch is NOT pushed to the server
2015-07-02 16:14:34 +02:00

16 lines
289 B
Bash
Executable File

#!/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