- Bitbucke Cloud
- CI system used - Codebuild
I am wondering if I can get some guidance for finding the sonar.pullrequest.key automatically when a codebuild job is triggered by pull request?
Here is some context:
I am aware that if I use bitbucket cloud, most environment variables are populated automatically.
However, what if I want to use “other CI” option and I will have to construct the property file or add parameter using -D.
For example, in this article,
I wonder how the author is getting the context.env.CHANGE_ID variable? I assume it is from the pluging he is using. In my case, I will be using aws codebuild and I am wondering how I can get the bitbucket pull request id for -Dsonar.pullrequest.key?