# Extract the change_id from the query_result
job=$JOB_NAME/$BUILD_NUMBER
# If available, add change_id to commit message
if change_id=$(echo "$query_result" | grep 'Change-Id:' | awk '{print $2}'); then
echo "NOTE: Found gerrit review: $change_id"
# Extract the change_id from the query_result
job=$JOB_NAME/$BUILD_NUMBER
# If available, add change_id to commit message
if change_id=$(echo "$query_result" | grep 'Change-Id:' | awk '{print $2}'); then
echo "NOTE: Found gerrit review: $change_id"