Ability to run a Validation only CI job on a pull request - this will make pull request ready for deployment without error
- Developer creates a pull request to a branch
- CI job validates the pull request and notify in case of errors
- Developer corrects errors - CI job again validates the pull request and this time it is fine 4.Release manager merges the pull request to the branch specific to an org and CI job deploys without error.
We now support validating pull requests from GitHub, GitHub Enterprise, Bitbucket, Bitbucket Server, GitLab and Azure DevOps.
-
Hi Nikita Belov, we don't have any plans for custom git since pull requests are a feature of the service provider (eg GitHub or Bitbucket) rather than git itself. Could I ask which git service provider you are using?
-
Nikita Belov commented
Are you planning to add this feature for Custom Git?
-
Hi Robert, yes atlassian still have an open ticket for this here: https://jira.atlassian.com/browse/BSERV-10279
At the moment we can create the job for you and automatically run it when a pull request is opened (which will simulate the result of merging a pull request and run a validation-only deployment to check if it will succeed if merged) and we can also delete the job once the pull request is closed/merged.
We don't receive a webhook event when a pull request has had new changes made to it so we won't automatically run the job again, but you can still run it manually on the CI jobs page if needed.
We'll update the feature as soon as the functionality is added on the BitBucket Server side.
-
Robert Fay commented
Hi, you previously commented that there was a limitation in Bitbucket Server regarding its webhook events. Does that limitation still apply?
-
We've just added support for using this feature with Bitbucket and should have GitLab support soon
-
Stepan Stepanov commented
We hope it will not only work with gitlab.com but also with a locally hosted gitlab.
-
Hi Robert, we're looking into this now and unfortunately Bitbucket Server doesn't currently support all the webhook events that we're planning on using for Bitbucket Cloud. There's a Jira ticket logged about this limitation here: https://jira.atlassian.com/browse/BSERV-10279 - it seems like we'll be able to get an event for a PR being opened or closed but not for any new changes.
This might mean we'll have a Bitbucket Server version that only validates on the PR being opened but we can investigate if there's a workaround in more detail after the Bitbucket Cloud version is completed.
-
Robert Fay commented
Great to see this! Looking forward to support for Bitbucket Server.
-
Ramesh Ale commented
Looking forward for this feature. Without this feature, my QA_branch and release branches are polluted with PRs that cause build to fail.