I am trying to use the bitbucket code report
using Gradle curl.
task flushBucket() {
def process = [ 'bash', '-c', "curl --proxy 'http://localhost:29418' --request PUT \"http://api.bitbucket.org/2.0/repositories/\$BITBUCKET_REPO_OWNER/\$BITBUCKET_REPO_SLUG/commit/\$BITBUCKET_COMMIT/reports/mySystem-001/annotations/mySystem-annotation0055\" --header 'Content-Type: application/json' --data-raw '{\"title\": \"ttile\"}' " ].execute()
process.waitFor()
println "flushBucketflushBucket"
println process.err.text
println process.text
}however,
<span>{"key": "report-service.general.bad-request", "message": "No matching report found ", "arguments": {}}</span>