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

Key: QB-3426
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Robin Shen
Reporter: Robin Shen
Votes: 1
Watchers: 0

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

Only build if there are new patch sets in Gerrit repository

Created: 24/Jul/19 01:05 AM   Updated: 27/Feb/20 07:45 AM
Component/s: None
Affects Version/s: 9.0.14
Fix Version/s: 9.0.38

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

 All   Comments   Work Log   Change History      Sort Order:

Robin Shen [27/Feb/20 07:20 AM]
With QB9, it is already possible to only build against open changes with new patch sets. This is what I am done:

1. Define a configuration and add a gerrit repository
2. Add relevant steps to checkout the gerrit repository and build against it
3. Make sure build condition of the configuration is set to "if changes found in referenced repositories"
4. Now schedule the configuration. When scheduled time reaches for the first time, all open changes will be built, as there is no previous build to determine patch set change. After that when scheduled time reaches again, all open changes will fire build requests, however only those with new patch sets will actually generate a build. Those without new patch sets will be ignored as there is no changes since previous run.

Please verify.

Robin Shen [27/Feb/20 07:31 AM]
Also if option "Queue Changed Branches Only" is enabled in advanced setting of the configuration, the build request itself will not be queued for changes without new patch sets to save more resource.