History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-3809
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Robin Shen
Reporter: Steve Luo
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

After upgrading to QB 11 GitHub webhook not working properly

Created: 20/Dec/21 05:53 PM   Updated: 24/Dec/21 04:29 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 11.0.26

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
When configuration has 2 or more defined repositories on GitHub (or even Git) and build is triggered via GitHub webhook, all repositories are checked out on pull request number.

Steps to reproduce:
1. Create new configuration
2. Create GitHub Repository abc, without pull requests, on specified branch (e.g. main)
3. Create GitHub repository xyz, with Pull request setting Specified Pull Requests, Type Merge, Ids equal to ${vars.getValue("pr_number")}
4. Create GitHub Webhook with variable pr_number = ${groovy: delivery.pull_request.number }
5. On repository xyz create Pull Request and send webhook to QuickBuild

Expected result:
- repository abc is checked out on specified branch,as it's not contains

Actual result:
- repository abc cannot be cloned, error: 'fatal: couldn't find remote ref refs/pull/<pull request number>/merge'

Workaround:
- fill in Commit or tag to build with HEAD (or valid tag or commit sha)


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.