sonarqube/scripts/patches/debug_ce.sh

12 lines
305 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
2017-11-18 04:15:30 +08:00
set -euo pipefail
source scripts/property_utils.sh
SQ_HOME=$1
port=5006
echo "enabling debug on compute engine, listening on port $port"
set_property sonar.ce.javaAdditionalOpts "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$port" "$SQ_HOME/conf/sonar.properties"