codefresh-io / steps

36 stars 89 forks source link

sonar-quality-gates-checker fails with bitbucket pull-request #526

Open brandonm opened 1 year ago

brandonm commented 1 year ago

When triggering pipeline from BitBucket Pull Request (pullrequest:created or pullrequest:updated events) the step sonar-quality-gates-checker will always fail. The required CF_PULL_REQUEST_NUMBER field for PRs is not set by codefresh. We have CF_PULL_REQUEST_ID.

https://github.com/codefresh-io/steps/blob/921417e7f9c463b210b8bd439442a7ec76c37213/incubating/sonar-quality-gates-checker/lib/sonarqube-api.py#L46